@@ -121,10 +121,10 @@ protected function processValue(mixed $value, bool $isRoot = false): mixed
121121 foreach ($ bindings as $ key => $ binding ) {
122122 [$ bindingValue , $ bindingId , $ used , $ bindingType , $ file ] = $ binding ->getValues ();
123123 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 ];
128128 }
129129
130130 if (preg_match ('/^(?:(?:array|bool|float|int|string|iterable|([^ $]++)) )\$/ ' , $ key , $ m )) {
@@ -263,8 +263,8 @@ private function getBindingValue(BoundArgument $binding): mixed
263263 {
264264 [$ bindingValue , $ bindingId ] = $ binding ->getValues ();
265265
266- $ this ->usedBindings [$ bindingId ] = true ;
267- unset($ this ->unusedBindings [$ bindingId ]);
266+ $ this ->usedBindings [$ bindingId ?? '' ] = true ;
267+ unset($ this ->unusedBindings [$ bindingId ?? '' ]);
268268
269269 return $ bindingValue ;
270270 }
0 commit comments