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

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

Comments

Projects
None yet
1 participant
@mnapoli
Member

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

This comment has been minimized.

Show comment
Hide comment
@mnapoli

mnapoli Oct 29, 2013

Member

Fixed in 3.5.1

Member

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