It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
It seems like $enum can also be of type null; however, parameter $enum of Spatie\Enum\Laravel\Rules\EnumRule::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
49
return (new EnumRule(/** @scrutinizer ignore-type */ $enum))->passes($attribute, $value);
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.