Error in case of a definition indexed by a number instead of a string #242
Here is a mistake that can be made easily:
return array( DI\object('Foo\Bar') ->constructor(/* ... */), );
Here the entry is not indexed by the class name.
PHP-DI should throw an exception to avoid silent errors of missing definitions.
The text was updated successfully, but these errors were encountered: