@@ -41,11 +41,11 @@ public function process(ContainerBuilder $container)
41
41
try {
42
42
parent ::process ($ container );
43
43
44
- foreach ($ this ->unusedBindings as list ( $ key , $ serviceId , $ bindingType , $ file) ) {
44
+ foreach ($ this ->unusedBindings as [ $ key , $ serviceId , $ bindingType , $ file] ) {
45
45
$ argumentType = $ argumentName = $ message = null ;
46
46
47
47
if (false !== strpos ($ key , ' ' )) {
48
- list ( $ argumentType , $ argumentName) = explode (' ' , $ key , 2 );
48
+ [ $ argumentType , $ argumentName] = explode (' ' , $ key , 2 );
49
49
} elseif ('$ ' === $ key [0 ]) {
50
50
$ argumentName = $ key ;
51
51
} else {
@@ -117,7 +117,7 @@ protected function processValue($value, bool $isRoot = false)
117
117
$ bindingNames = [];
118
118
119
119
foreach ($ bindings as $ key => $ binding ) {
120
- list ( $ bindingValue , $ bindingId , $ used , $ bindingType , $ file) = $ binding ->getValues ();
120
+ [ $ bindingValue , $ bindingId , $ used , $ bindingType , $ file] = $ binding ->getValues ();
121
121
if ($ used ) {
122
122
$ this ->usedBindings [$ bindingId ] = true ;
123
123
unset($ this ->unusedBindings [$ bindingId ]);
@@ -156,7 +156,7 @@ protected function processValue($value, bool $isRoot = false)
156
156
}
157
157
158
158
foreach ($ calls as $ i => $ call ) {
159
- list ( $ method , $ arguments) = $ call ;
159
+ [ $ method , $ arguments] = $ call ;
160
160
161
161
if ($ method instanceof \ReflectionFunctionAbstract) {
162
162
$ reflectionMethod = $ method ;
@@ -210,7 +210,7 @@ protected function processValue($value, bool $isRoot = false)
210
210
}
211
211
212
212
if ($ constructor ) {
213
- list ( , $ arguments) = array_pop ($ calls );
213
+ [ , $ arguments] = array_pop ($ calls );
214
214
215
215
if ($ arguments !== $ value ->getArguments ()) {
216
216
$ value ->setArguments ($ arguments );
@@ -229,7 +229,7 @@ protected function processValue($value, bool $isRoot = false)
229
229
*/
230
230
private function getBindingValue (BoundArgument $ binding )
231
231
{
232
- list ( $ bindingValue , $ bindingId) = $ binding ->getValues ();
232
+ [ $ bindingValue , $ bindingId] = $ binding ->getValues ();
233
233
234
234
$ this ->usedBindings [$ bindingId ] = true ;
235
235
unset($ this ->unusedBindings [$ bindingId ]);
0 commit comments