@@ -597,7 +597,7 @@ private function addServiceInclude(string $cId, Definition $definition): string
597
597
}
598
598
}
599
599
600
- foreach ($ this ->serviceCalls as $ id => list ( $ callCount , $ behavior) ) {
600
+ foreach ($ this ->serviceCalls as $ id => [ $ callCount , $ behavior] ) {
601
601
if ('service_container ' !== $ id && $ id !== $ cId
602
602
&& ContainerInterface::IGNORE_ON_UNINITIALIZED_REFERENCE !== $ behavior
603
603
&& $ this ->container ->has ($ id )
@@ -950,7 +950,7 @@ private function addInlineReference(string $id, Definition $definition, string $
950
950
$ targetId = (string ) $ this ->container ->getAlias ($ targetId );
951
951
}
952
952
953
- list ( $ callCount , $ behavior) = $ this ->serviceCalls [$ targetId ];
953
+ [ $ callCount , $ behavior] = $ this ->serviceCalls [$ targetId ];
954
954
955
955
if ($ id === $ targetId ) {
956
956
return $ this ->addInlineService ($ id , $ definition , $ definition );
@@ -1006,7 +1006,7 @@ private function addInlineService(string $id, Definition $definition, Definition
1006
1006
$ code = '' ;
1007
1007
1008
1008
if ($ isSimpleInstance = $ isRootInstance = null === $ inlineDef ) {
1009
- foreach ($ this ->serviceCalls as $ targetId => list ( $ callCount , $ behavior , $ byConstructor) ) {
1009
+ foreach ($ this ->serviceCalls as $ targetId => [ $ callCount , $ behavior , $ byConstructor] ) {
1010
1010
if ($ byConstructor && isset ($ this ->circularReferences [$ id ][$ targetId ]) && !$ this ->circularReferences [$ id ][$ targetId ]) {
1011
1011
$ code .= $ this ->addInlineReference ($ id , $ definition , $ targetId , $ forConstructor );
1012
1012
}
@@ -1076,7 +1076,7 @@ private function addServices(array &$services = null): string
1076
1076
}
1077
1077
1078
1078
foreach ($ definitions as $ id => $ definition ) {
1079
- if (!(list ( $ file , $ code) = $ services [$ id ]) || null !== $ file ) {
1079
+ if (!([ $ file , $ code] = $ services [$ id ]) || null !== $ file ) {
1080
1080
continue ;
1081
1081
}
1082
1082
if ($ definition ->isPublic ()) {
@@ -1094,7 +1094,7 @@ private function generateServiceFiles(array $services): iterable
1094
1094
$ definitions = $ this ->container ->getDefinitions ();
1095
1095
ksort ($ definitions );
1096
1096
foreach ($ definitions as $ id => $ definition ) {
1097
- if ((list ( $ file , $ code) = $ services [$ id ]) && null !== $ file && ($ definition ->isPublic () || !$ this ->isTrivialInstance ($ definition ) || isset ($ this ->locatedIds [$ id ]))) {
1097
+ if (([ $ file , $ code] = $ services [$ id ]) && null !== $ file && ($ definition ->isPublic () || !$ this ->isTrivialInstance ($ definition ) || isset ($ this ->locatedIds [$ id ]))) {
1098
1098
yield $ file => [$ code , $ definition ->hasTag ($ this ->hotPathTag ) || !$ definition ->hasTag ($ this ->preloadTags [1 ]) && !$ definition ->isDeprecated () && !$ definition ->hasErrors ()];
1099
1099
}
1100
1100
}
@@ -1796,7 +1796,7 @@ private function dumpValue($value, bool $interpolate = true): string
1796
1796
return sprintf ('new \%s($this->getService, [%s%s], [%s%s]) ' , ServiceLocator::class, $ serviceMap , $ serviceMap ? "\n " : '' , $ serviceTypes , $ serviceTypes ? "\n " : '' );
1797
1797
}
1798
1798
} finally {
1799
- list ( $ this ->definitionVariables , $ this ->referenceVariables ) = $ scope ;
1799
+ [ $ this ->definitionVariables , $ this ->referenceVariables ] = $ scope ;
1800
1800
}
1801
1801
} elseif ($ value instanceof Definition) {
1802
1802
if ($ value ->hasErrors () && $ e = $ value ->getErrors ()) {
0 commit comments