🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Closure::bindTo() no longer identified as potentially returning null #5009

Description

@greg0ire

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions