It seems like $factory can also be of type null; however, parameter $factory of Antidot\Container\Contai...rFactory::__construct() does only seem to accept callable, 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
20
return new ContainerDelegatorFactory($delegatorNames, /** @scrutinizer ignore-type */ $factory);
Loading history...
21
2
});
22
2
$dependencies->set(
23
2
$service,
24
2
static function (ContainerInterface $container) use ($service) {