@@ -121,10 +121,10 @@ protected function processValue(mixed $value, bool $isRoot = false): mixed
121
121
foreach ($ bindings as $ key => $ binding ) {
122
122
[$ bindingValue , $ bindingId , $ used , $ bindingType , $ file ] = $ binding ->getValues ();
123
123
if ($ used ) {
124
- $ this ->usedBindings [$ bindingId ] = true ;
125
- unset($ this ->unusedBindings [$ bindingId ]);
126
- } elseif (!isset ($ this ->usedBindings [$ bindingId ])) {
127
- $ this ->unusedBindings [$ bindingId ] = [$ key , $ this ->currentId , $ bindingType , $ file ];
124
+ $ this ->usedBindings [$ bindingId ?? '' ] = true ;
125
+ unset($ this ->unusedBindings [$ bindingId ?? '' ]);
126
+ } elseif (!isset ($ this ->usedBindings [$ bindingId ?? '' ])) {
127
+ $ this ->unusedBindings [$ bindingId ?? '' ] = [$ key , $ this ->currentId , $ bindingType , $ file ];
128
128
}
129
129
130
130
if (preg_match ('/^(?:(?:array|bool|float|int|string|iterable|([^ $]++)) )\$/ ' , $ key , $ m )) {
@@ -263,8 +263,8 @@ private function getBindingValue(BoundArgument $binding): mixed
263
263
{
264
264
[$ bindingValue , $ bindingId ] = $ binding ->getValues ();
265
265
266
- $ this ->usedBindings [$ bindingId ] = true ;
267
- unset($ this ->unusedBindings [$ bindingId ]);
266
+ $ this ->usedBindings [$ bindingId ?? '' ] = true ;
267
+ unset($ this ->unusedBindings [$ bindingId ?? '' ]);
268
268
269
269
return $ bindingValue ;
270
270
}
0 commit comments