[+BUGFIX] Extbase (Object): constructor injection fails if default value for a depend...
authorSebastian Kurfürst <sebastian@typo3.org>
Fri, 21 Jan 2011 13:01:39 +0000 (13:01 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Fri, 21 Jan 2011 13:01:39 +0000 (13:01 +0000)
commitfd5531756ab74cd71e12ec6bbc1191dfef01ef6f
tree01743c91f6a26763f1530961a9350286ff68a57a
parent74a61c8496f82ca23560eece9370b53b935c1ff7
[+BUGFIX] Extbase (Object): constructor injection fails if default value for a dependency is NULL

In Container class the existence of a default value was checked with
isset($argumentInformation['defaultValue']) which returns false if
$argumentInformation['defaultValue'] === NULL.

This commit fixes this issue using array_key_exists() instead and adds a unit test.

Thanks to Lienhart Woitok for the patch!

Resolves: #11623
typo3/sysext/extbase/Classes/Object/Container/Container.php
typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php
typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/Testclasses.php