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
EntityFieldPair::getField() is documented to return template type TField so when returning Field, error must be emit. This was working until phpstan v1.4.6.
The text was updated successfully, but these errors were encountered:
Bug report
based on discussion #6575 (comment)
Until phpstan v1.4.6 this was working with level 6. Since phpstan v1.4.6 level 7 is required.
I do not understand why and I belive it is a bug.
/cc @arnaud-lb
Code snippet that reproduces the problem
https://phpstan.org/r/3eb789f9-8b3b-442b-97a9-94b6e8d80438
https://phpstan.org/r/fe43eab5-015b-47ad-b3b0-acbf7228dd27 even more problematic usecase
@template-covariant TField of Field2
, but returningField
Expected output
EntityFieldPair::getField()
is documented to return template typeTField
so when returningField
, error must be emit. This was working until phpstan v1.4.6.The text was updated successfully, but these errors were encountered: