Bug report
As stated in #4716, the return value of Closure::bindTo() is supposed to be ?Closure
Code snippet that reproduces the problem
https://phpstan.org/r/824fde7f-0fb4-45b5-a30b-cb95917518a5
Expected output
Error, cannot call null.
Did PHPStan help you today? Did it make you happy in any way?
It helped me providing better phpdoc for doctrine/persistence consumers :)
Bug report
As stated in #4716, the return value of
Closure::bindTo()is supposed to be?ClosureCode snippet that reproduces the problem
https://phpstan.org/r/824fde7f-0fb4-45b5-a30b-cb95917518a5
Expected output
Error, cannot call
null.Did PHPStan help you today? Did it make you happy in any way?
It helped me providing better phpdoc for
doctrine/persistenceconsumers :)