Skip to content

Commit

Permalink
Improved ObjectFactory::getArgumentsFromConstructorArguments
Browse files Browse the repository at this point in the history
  • Loading branch information
niels-nijens committed Jan 10, 2015
1 parent 0c81652 commit 1085fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ObjectFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function getArgumentsFromConstructorArguments(ReflectionClass $class,
if (isset($constructorArguments[$parameter->getName() ] ) ) {
$arguments[] = $constructorArguments[$parameter->getName() ];
}
else {
elseif ($parameter->isDefaultValueAvailable() ) {
$arguments[] = $parameter->getDefaultValue();
}
}
Expand Down

0 comments on commit 1085fb5

Please sign in to comment.