The expression return self::instance could return the type null which is incompatible with the type-hinted return AlecRabbit\Spinner\Conta...act\IDefinitionRegistry. Consider adding an additional type-check to rule them out.
Loading history...
32
}
33
34
public function load(): Traversable
35
{
36
yield from $this->definitions;
37
}
38
39
public function bind(IServiceDefinition ...$serviceDefinitions): void
40
{
41
foreach ($serviceDefinitions as $serviceDefinition) {