Skip to content

Conversation

moufmouf
Copy link
Member

@moufmouf moufmouf commented Mar 7, 2019

preg_replace can return string or array depending on the 3rd argument passed.
PhpStan has a special rule for that.
This rule is backported to Safe\preg_replace by this PR.

See thecodingmachine/safe#94

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant