You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for native annotations
This commit introduce a new `Phake\Annotation\IReader` interface.
There are two implementations of this class :
`Phake\Annotation\LegacyReader` (default for php7)
This is the Phake 3.X way to do with the @mock and @var annotations
in the comments.
`Phake\Annotation\NativeReader` (default for php8)
This is the new way to do it. You need to add a `Phake\Mock` native
attribute to your property.
If you're using PHP8 but still want to load the old way you can use
```
Phake\Annotation\MockInitializer::setDefaultReader(
new Phake\Annotation\LegacyReader()
);
```