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 have an enum where I make a in_array() call using named arguments to set the $haystack as the last (3rd) argument, but I get the following error:
Call to function in_array() requires parameter #3 to be true.
The issue is that the $strict parameter is already set to true. Would this behaviour be considered a bug or should I stop using named arguments there ?
I have an enum where I make a
in_array()
call using named arguments to set the$haystack
as the last (3rd) argument, but I get the following error:The issue is that the
$strict
parameter is already set to true. Would this behaviour be considered a bug or should I stop using named arguments there ?Here is a link to reproduce:
https://phpstan.org/r/48cd75b6-c3a8-4108-904b-f2307e7e48ab
The text was updated successfully, but these errors were encountered: