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
It seems your classes are autoloaded by PHPStan and not run statically as they should be. Do you use PHPStan?
If not, we'll need to exclude the interfaces probably.
If you do, try to detect what in your phpstan.neon loads code dynamically (e.g. Doctrine or Symfony extension)
The issue is related to the interfaces that contain constants without or with the public access modifier.
E.G:
The next source code:
will produce the next error
As I can see, after the error is thrown the interface code is changed
Possible solutions:
https://github.com/rectorphp/swiss-knife/blob/main/src/ValueObject/ClassConstMatch.php
to avoid the thrown fatal errorPlease, let me know if you would like to get more details.
Thanks)
The text was updated successfully, but these errors were encountered: