@@ -278,7 +278,7 @@ private function parseDefinition(\DOMElement $service, $file, array $defaults)
278
278
$ definition ->setDeprecated (true , $ deprecated [0 ]->nodeValue ?: null );
279
279
}
280
280
281
- $ definition ->setArguments ($ this ->getArgumentsAsPhp ($ service , 'argument ' , $ file , false , $ definition instanceof ChildDefinition));
281
+ $ definition ->setArguments ($ this ->getArgumentsAsPhp ($ service , 'argument ' , $ file , $ definition instanceof ChildDefinition));
282
282
$ definition ->setProperties ($ this ->getArgumentsAsPhp ($ service , 'property ' , $ file ));
283
283
284
284
if ($ factories = $ this ->getChildren ($ service , 'factory ' )) {
@@ -452,11 +452,10 @@ private function processAnonymousServices(\DOMDocument $xml, $file, $defaults)
452
452
*
453
453
* @param string $name
454
454
* @param string $file
455
- * @param bool $lowercase
456
455
*
457
456
* @return mixed
458
457
*/
459
- private function getArgumentsAsPhp (\DOMElement $ node , $ name , $ file , $ lowercase = true , $ isChildDefinition = false )
458
+ private function getArgumentsAsPhp (\DOMElement $ node , $ name , $ file , $ isChildDefinition = false )
460
459
{
461
460
$ arguments = [];
462
461
foreach ($ this ->getChildren ($ node , $ name ) as $ arg ) {
@@ -506,10 +505,10 @@ private function getArgumentsAsPhp(\DOMElement $node, $name, $file, $lowercase =
506
505
$ arguments [$ key ] = new Expression ($ arg ->nodeValue );
507
506
break ;
508
507
case 'collection ' :
509
- $ arguments [$ key ] = $ this ->getArgumentsAsPhp ($ arg , $ name , $ file, false );
508
+ $ arguments [$ key ] = $ this ->getArgumentsAsPhp ($ arg , $ name , $ file );
510
509
break ;
511
510
case 'iterator ' :
512
- $ arg = $ this ->getArgumentsAsPhp ($ arg , $ name , $ file, false );
511
+ $ arg = $ this ->getArgumentsAsPhp ($ arg , $ name , $ file );
513
512
try {
514
513
$ arguments [$ key ] = new IteratorArgument ($ arg );
515
514
} catch (InvalidArgumentException $ e ) {
0 commit comments