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
When I use property_exists() on a parent class, it assumes that it's always used on that class, not possibly on a child class. That should only be the case in private methods, not in protected & public.
For some reason, it does not seem to give any error on PHP8.1, only 8.2, according to the PHPStan playground.
Bug report
When I use
property_exists()
on a parent class, it assumes that it's always used on that class, not possibly on a child class. That should only be the case in private methods, not in protected & public.For some reason, it does not seem to give any error on PHP8.1, only 8.2, according to the PHPStan playground.
Code snippet that reproduces the problem
https://phpstan.org/r/04888761-38fb-471c-9e6c-2fd61357ff52
Expected output
No error
The text was updated successfully, but these errors were encountered: