Skip to content

array_filter supports a new constant ARRAY_FILTER_USE_VALUE #15372

Closed
phpstan/phpstan-src
#6681

Description

@VincentLanglet

Feature request

https://github.com/phpstan/phpstan-src/blob/b0e7a99dbaaa6961727eed8d4c528f9ad7c05a22/resources/constantToFunctionParameterMap.php#L302-L310

ARRAY_FILTER_USE_VALUE should be allowed on PHP 8.6+

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

No response

Activity

  1. added this to the PHP 8.6 milestone on Oct 4, 2026
  2. staabm commented on Oct 5, 2026

    @staabm
    Contributor

    constantToFunctionParameterMap.php needs to be updated so it includes which other constants can be combined with ARRAY_FILTER_USE_VALUE

  3. added a commit that references this issue on Oct 9, 2026
    9760e84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions