You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the expected value for PHPStan\Testing\assertType('array|null', preg_filter(['#foo#'], ['bar'], ['subject'])); within the snippet is wrong, as preg_filter will not return null when $subject is a array
Feature request
preg_filter()
can return a string or an array of string depending on the type of its 3rd parameter.It would be useful to refine the return type based on the 3rd parameter.
https://phpstan.org/r/43423551-a7d4-42fa-98ec-44a484c355af
The text was updated successfully, but these errors were encountered: