|
@@ -305,9 +305,9 @@ |
|
|
block discarded – undo |
|
305
|
305
|
|
|
306
|
306
|
$args[$param_name] = $this->findService($name, $type_class); |
|
307
|
307
|
} elseif($param->isDefaultValueAvailable()) { |
|
308
|
|
- $args[$param_name] = $param->getDefaultValue(); |
|
|
308
|
+ $args[$param_name] = $param->getDefaultValue(); |
|
309
|
309
|
} elseif($param->allowsNull() && $param->hasType()) { |
|
310
|
|
- $args[$param_name] = null; |
|
|
310
|
+ $args[$param_name] = null; |
|
311
|
311
|
} else { |
|
312
|
312
|
throw new Exception\Configuration('no value found for argument '.$param_name.' in method '.$method->getName().' for service '.$name); |
|
313
|
313
|
} |
Please login to merge, or discard this patch.