Skip to content

method.notFound false positives after upgrade >= 2.1.9 #12793

Description

@calebdw

Bug report

Hello!

We just upgraded PHPStan (v2.1.8 to v2.1.11) and now we're getting method.notFound false positives despite checking method_exists prior to calling the methods---this was working before.

Thanks!

Code snippet that reproduces the problem

https://phpstan.org/r/ca795e85-44ad-4fcd-80c9-a65afbb09748

Expected output

I would expect there to be no errors

Did PHPStan help you today? Did it make you happy in any way?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions