@@ -431,7 +431,7 @@ public function processArgs(
431431
432432 $ closureResult = $ this ->closureProcessor ->processClosureNode ($ nodeScopeResolver , $ stmt , $ arg ->value , $ scopeToPass , $ storage , $ nodeCallback , $ context , $ parameterType , $ parameterNativeType );
433433 if ($ this ->callCallbackImmediately ($ parameter , $ parameterType , $ calleeReflection )) {
434- $ throwPoints = array_merge ($ throwPoints , array_map (static fn (InternalThrowPoint $ throwPoint ) => $ throwPoint ->isExplicit () ? InternalThrowPoint ::createExplicit ($ scope , $ throwPoint ->getType (), $ arg ->value , $ throwPoint ->canContainAnyThrowable (), $ throwPoint -> isFromThrowExpr () ) : InternalThrowPoint ::createImplicit ($ scope , $ arg ->value ), $ closureResult ->getThrowPoints ()));
434+ $ throwPoints = array_merge ($ throwPoints , array_map (static fn (InternalThrowPoint $ throwPoint ) => $ throwPoint ->isExplicit () ? InternalThrowPoint ::createExplicit ($ scope , $ throwPoint ->getType (), $ arg ->value , $ throwPoint ->canContainAnyThrowable ()) : InternalThrowPoint ::createImplicit ($ scope , $ arg ->value ), $ closureResult ->getThrowPoints ()));
435435 $ impurePoints = array_merge ($ impurePoints , $ closureResult ->getImpurePoints ());
436436 }
437437
@@ -578,7 +578,7 @@ public function processArgs(
578578 $ arrowFunctionResult = $ this ->closureProcessor ->processArrowFunctionNode ($ nodeScopeResolver , $ stmt , $ arg ->value , $ scopeToPass , $ storage , $ nodeCallback , $ parameterType , $ parameterNativeType , $ context );
579579 $ arrowFunctionExprResult = $ arrowFunctionResult ->getExpressionResult ();
580580 if ($ this ->callCallbackImmediately ($ parameter , $ parameterType , $ calleeReflection )) {
581- $ throwPoints = array_merge ($ throwPoints , array_map (static fn (InternalThrowPoint $ throwPoint ) => $ throwPoint ->isExplicit () ? InternalThrowPoint ::createExplicit ($ scope , $ throwPoint ->getType (), $ arg ->value , $ throwPoint ->canContainAnyThrowable (), $ throwPoint -> isFromThrowExpr () ) : InternalThrowPoint ::createImplicit ($ scope , $ arg ->value ), $ arrowFunctionExprResult ->getThrowPoints ()));
581+ $ throwPoints = array_merge ($ throwPoints , array_map (static fn (InternalThrowPoint $ throwPoint ) => $ throwPoint ->isExplicit () ? InternalThrowPoint ::createExplicit ($ scope , $ throwPoint ->getType (), $ arg ->value , $ throwPoint ->canContainAnyThrowable ()) : InternalThrowPoint ::createImplicit ($ scope , $ arg ->value ), $ arrowFunctionExprResult ->getThrowPoints ()));
582582 $ impurePoints = array_merge ($ impurePoints , $ arrowFunctionExprResult ->getImpurePoints ());
583583 }
584584 $ arrowFunctionScope = $ arrowFunctionResult ->getArrowFunctionScope ();
@@ -666,7 +666,7 @@ public function processArgs(
666666 $ deferredInvalidateExpressions [] = [$ acceptors [0 ]->getInvalidateExpressions (), $ acceptors [0 ]->getUsedVariables ()];
667667 }
668668 if ($ callCallbackImmediately ) {
669- $ callableThrowPoints = array_map (static fn (SimpleThrowPoint $ throwPoint ) => $ throwPoint ->isExplicit () ? InternalThrowPoint ::createExplicit ($ scope , $ throwPoint ->getType (), $ arg ->value , $ throwPoint ->canContainAnyThrowable (), $ throwPoint -> isFromThrowExpr () ) : InternalThrowPoint ::createImplicit ($ scope , $ arg ->value ), $ acceptors [0 ]->getThrowPoints ());
669+ $ callableThrowPoints = array_map (static fn (SimpleThrowPoint $ throwPoint ) => $ throwPoint ->isExplicit () ? InternalThrowPoint ::createExplicit ($ scope , $ throwPoint ->getType (), $ arg ->value , $ throwPoint ->canContainAnyThrowable ()) : InternalThrowPoint ::createImplicit ($ scope , $ arg ->value ), $ acceptors [0 ]->getThrowPoints ());
670670 if (!$ this ->implicitThrows ) {
671671 $ callableThrowPoints = array_values (array_filter ($ callableThrowPoints , static fn (InternalThrowPoint $ throwPoint ) => $ throwPoint ->isExplicit ()));
672672 }
0 commit comments