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 binding $this to a class in closures using @param-closure-this, it should be allowed to call protected or private methods of the class as it is valid php code.
Bug report
When binding $this to a class in closures using
@param-closure-this
, it should be allowed to call protected or private methods of the class as it is valid php code.Code snippet that reproduces the problem
https://phpstan.org/r/74150e1e-4c8f-48e3-b56b-9f246558e529
Expected output
No errors on the
$this->sayHello()
and the$this->wisper()
callsDid PHPStan help you today? Did it make you happy in any way?
An analysis a day keeps the doctor away ! (but more than just 1 is better)
The text was updated successfully, but these errors were encountered: