Closed ezzatron closed 1 year ago
See #253 for context.
Example of a trait that cannot be mocked currently. Not sure if abstract is necessary or not, suspect not:
abstract
trait TestTraitWithAbstractSelfMethod { abstract public static function staticMethod(): self; abstract public function method(): self; }
Phony is probably eagerly resolving self into TestTraitWithAbstractSelfMethod, which obviously doesn't make sense.
self
TestTraitWithAbstractSelfMethod
See #253 for context.
Example of a trait that cannot be mocked currently. Not sure if
abstract
is necessary or not, suspect not:Phony is probably eagerly resolving
self
intoTestTraitWithAbstractSelfMethod
, which obviously doesn't make sense.