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