@@ -304,7 +304,7 @@ private function parseDefinition(\DOMElement $service, $file, array $defaults)
304
304
$ definition ->setDeprecated (true , $ deprecated [0 ]->nodeValue ?: null );
305
305
}
306
306
307
- $ definition ->setArguments ($ this ->getArgumentsAsPhp ($ service , 'argument ' , $ file , false , $ definition instanceof ChildDefinition));
307
+ $ definition ->setArguments ($ this ->getArgumentsAsPhp ($ service , 'argument ' , $ file , $ definition instanceof ChildDefinition));
308
308
$ definition ->setProperties ($ this ->getArgumentsAsPhp ($ service , 'property ' , $ file ));
309
309
310
310
if ($ factories = $ this ->getChildren ($ service , 'factory ' )) {
@@ -468,11 +468,10 @@ private function processAnonymousServices(\DOMDocument $xml, $file, $defaults)
468
468
*
469
469
* @param string $name
470
470
* @param string $file
471
- * @param bool $lowercase
472
471
*
473
472
* @return mixed
474
473
*/
475
- private function getArgumentsAsPhp (\DOMElement $ node , $ name , $ file , $ lowercase = true , $ isChildDefinition = false )
474
+ private function getArgumentsAsPhp (\DOMElement $ node , $ name , $ file , $ isChildDefinition = false )
476
475
{
477
476
$ arguments = [];
478
477
foreach ($ this ->getChildren ($ node , $ name ) as $ arg ) {
@@ -519,10 +518,10 @@ private function getArgumentsAsPhp(\DOMElement $node, $name, $file, $lowercase =
519
518
$ arguments [$ key ] = new Expression ($ arg ->nodeValue );
520
519
break ;
521
520
case 'collection ' :
522
- $ arguments [$ key ] = $ this ->getArgumentsAsPhp ($ arg , $ name , $ file, false );
521
+ $ arguments [$ key ] = $ this ->getArgumentsAsPhp ($ arg , $ name , $ file );
523
522
break ;
524
523
case 'iterator ' :
525
- $ arg = $ this ->getArgumentsAsPhp ($ arg , $ name , $ file, false );
524
+ $ arg = $ this ->getArgumentsAsPhp ($ arg , $ name , $ file );
526
525
try {
527
526
$ arguments [$ key ] = new IteratorArgument ($ arg );
528
527
} catch (InvalidArgumentException $ e ) {
0 commit comments