Skip to content

array_first is not reported as function.notFound in PHP 8.4 #15150

Description

@Kleisli

Bug report

When i use the function array_first in a PHP 8.4 code base, PHPStan doesn't report it as non existing anymore.

I was able to track the bug down to version 2.1.32 (in 2.1.31 function.notFound still is reported), but the bug exists up to the latest version 2.2.12

I was not able to reproduce the behaviour in the playground, I don't know what version you deployed there...

Code snippet that reproduces the problem

Should report like in the playground, but it doesn't

Expected output


228 Function array_first not found.
🪪 function.notFound
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols


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

not today, but PHPStan made my code so much better. :)

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions