It seems like $config->getLeadingSpacer() can also be of type null; however, parameter $frame of AlecRabbit\Spinner\Core\...er::withLeadingSpacer() does only seem to accept AlecRabbit\Spinner\Contract\IFrame, 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 $config->getTrailingSpacer() can also be of type null; however, parameter $frame of AlecRabbit\Spinner\Core\...r::withTrailingSpacer() does only seem to accept AlecRabbit\Spinner\Contract\IFrame, 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 $config->getStylePattern() can also be of type null; however, parameter $pattern of AlecRabbit\Spinner\Core\...der::withStylePattern() does only seem to accept AlecRabbit\Spinner\Core\...\Contract\IStylePattern, 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 $config->getCharPattern() can also be of type null; however, parameter $pattern of AlecRabbit\Spinner\Core\...lder::withCharPattern() does only seem to accept AlecRabbit\Spinner\Contract\Pattern\IPattern, 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