function(...) { /* ... */ } of type callable is incompatible with the type object expected by parameter $service of Gacela\Framework\Container\Container::factory().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
function(...) { /* ... */ } of type callable is incompatible with the type object expected by parameter $service of Gacela\Framework\Container\Container::factory().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
44
$container->factory(/** @scrutinizer ignore-type */ static function (Container $container) {