-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
self::class in entity is interpreted in wrong context #512
Comments
Providing a failing test would be the best, thanks |
jlherren
added a commit
to jlherren/phpstan-doctrine
that referenced
this issue
Jan 8, 2024
See 1.4.x...jlherren:phpstan-doctrine:bug-512
|
The underlying issue is there for a long time, 1.3.53 just extended the places where such feature is used so it poped up. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With this entity:
And this code:
I get the following error:
If I replace
self::class
withPerson::class
, it works as expected. It seems thatself
is being understood to beTest
, when in fact it refers toPerson
. I can provide a fuller reproduction example if desired. This seems to have gone broken in a recent release.The text was updated successfully, but these errors were encountered: