It seems like $color can also be of type AlecRabbit\Spinner\Extras\Color\Contract\IColor; however, parameter $color of AlecRabbit\Spinner\Extra...odeConverter::convert() 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
It seems like $color can also be of type AlecRabbit\Spinner\Extras\Color\Contract\IColor; however, parameter $values of sprintf() does only seem to accept double|integer|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
38
sprintf('Invalid color format: "%s".,', /** @scrutinizer ignore-type */ $color)
Loading history...
39
),
40
};
41
}
42
43
private static function correctFormat(IColor|string $color): bool