@@ -217,7 +217,7 @@ public function processArgs(
217217 yield from $ closureResultGen ;
218218 [$ closureResult ] = $ closureResultGen ->getReturn ();
219219 if ($ callCallbackImmediately ) {
220- $ 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 ->throwPoints ));
220+ $ throwPoints = array_merge ($ throwPoints , array_map (static fn (InternalThrowPoint $ throwPoint ) => $ throwPoint ->explicit ? InternalThrowPoint::createExplicit ($ scope , $ throwPoint ->type , $ arg ->value , $ throwPoint ->canContainAnyThrowable ) : InternalThrowPoint::createImplicit ($ scope , $ arg ->value ), $ closureResult ->throwPoints ));
221221 $ impurePoints = array_merge ($ impurePoints , $ closureResult ->impurePoints );
222222 $ isAlwaysTerminating = $ isAlwaysTerminating || $ closureResult ->isAlwaysTerminating ;
223223 }
@@ -285,7 +285,7 @@ public function processArgs(
285285 yield from $ arrowFunctionResultGen ;
286286 $ arrowFunctionResult = $ arrowFunctionResultGen ->getReturn ();
287287 if ($ callCallbackImmediately ) {
288- $ 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 ), $ arrowFunctionResult ->throwPoints ));
288+ $ throwPoints = array_merge ($ throwPoints , array_map (static fn (InternalThrowPoint $ throwPoint ) => $ throwPoint ->explicit ? InternalThrowPoint::createExplicit ($ scope , $ throwPoint ->type , $ arg ->value , $ throwPoint ->canContainAnyThrowable ) : InternalThrowPoint::createImplicit ($ scope , $ arg ->value ), $ arrowFunctionResult ->throwPoints ));
289289 $ impurePoints = array_merge ($ impurePoints , $ arrowFunctionResult ->impurePoints );
290290 $ isAlwaysTerminating = $ isAlwaysTerminating || $ arrowFunctionResult ->isAlwaysTerminating ;
291291 }
@@ -305,7 +305,7 @@ public function processArgs(
305305 if ($ callCallbackImmediately ) {
306306 $ 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 ());
307307 if (!$ this ->implicitThrows ) {
308- $ callableThrowPoints = array_values (array_filter ($ callableThrowPoints , static fn (InternalThrowPoint $ throwPoint ) => $ throwPoint ->isExplicit () ));
308+ $ callableThrowPoints = array_values (array_filter ($ callableThrowPoints , static fn (InternalThrowPoint $ throwPoint ) => $ throwPoint ->explicit ));
309309 }
310310 $ throwPoints = array_merge ($ throwPoints , $ callableThrowPoints );
311311 $ impurePoints = array_merge ($ impurePoints , array_map (static fn (SimpleImpurePoint $ impurePoint ) => new ImpurePoint ($ scope , $ arg ->value , $ impurePoint ->getIdentifier (), $ impurePoint ->getDescription (), $ impurePoint ->isCertain ()), $ acceptors [0 ]->getImpurePoints ()));
0 commit comments