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

more precise preg_replace_callback* $flags types #11437

Description

@staabm

Bug report

$flags only supports int-mask<0|[PREG_UNMATCHED_AS_NULL|PREG_OFFSET_CAPTURE>.

given other values, it should error

Code snippet that reproduces the problem

https://phpstan.org/r/140e3281-fece-4420-a679-4db73333492c

Expected output

4 error regarding invalid $flags arg

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

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions