Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container::set after a value has been set and retrieved #126

Closed
mnapoli opened this issue Oct 29, 2013 · 1 comment
Closed

Container::set after a value has been set and retrieved #126

mnapoli opened this issue Oct 29, 2013 · 1 comment
Labels
bug

Comments

@mnapoli
Copy link
Member

@mnapoli mnapoli commented Oct 29, 2013

$container->set('foo', 'bar');
$container->get('foo');
// bar

$container->set('foo', 'baz');
$container->get('foo');
// bar (should be baz)

The value is "cached" in the $entries array, and set only add a new definition but doesn't update the $entries array.

Fix should be trivial.

@mnapoli
Copy link
Member Author

@mnapoli mnapoli commented Oct 29, 2013

Fixed in 3.5.1

@mnapoli mnapoli closed this Oct 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.