Skip to content

Conversation

@TomasVotruba
Copy link
Contributor

One more related bug to #71:

$someInterface => [
    0 => FirstService
    1 => SecondService
];

Remove 'FirstService':

$someInterface => [
    1 => SecondService
];

Then, getByType will try to get [0] => FAIL

Solution? Something like:

return reset($this->classes[$class][TRUE]);

What do you think?

@TomasVotruba
Copy link
Contributor Author

👍

@TomasVotruba TomasVotruba deleted the container-builder-remove-definition-fix branch June 17, 2015 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant