@@ -3900,25 +3900,27 @@ static function (): void {
39003900 || $ expr instanceof Expr \PreDec
39013901 || $ expr instanceof Expr \PostDec
39023902 ) {
3903+ $ result = $ this ->processExprNode ($ stmt , $ expr ->var , $ scope , $ nodeCallback , $ context ->enterDeep ());
3904+ $ scope = $ result ->getScope ();
3905+ $ hasYield = $ result ->hasYield ();
3906+ $ throwPoints = $ result ->getThrowPoints ();
3907+ $ impurePoints = $ result ->getImpurePoints ();
3908+ $ isAlwaysTerminating = $ result ->isAlwaysTerminating ();
3909+
39033910 $ newExpr = $ expr ;
39043911 if ($ expr instanceof Expr \PostInc) {
39053912 $ newExpr = new Expr \PreInc ($ expr ->var );
39063913 } elseif ($ expr instanceof Expr \PostDec) {
39073914 $ newExpr = new Expr \PreDec ($ expr ->var );
39083915 }
39093916
3910- $ result = $ this ->processVirtualAssign (
3917+ $ scope = $ this ->processVirtualAssign (
39113918 $ scope ,
39123919 $ stmt ,
39133920 $ expr ->var ,
39143921 $ newExpr ,
39153922 $ nodeCallback ,
3916- );
3917- $ scope = $ result ->getScope ();
3918- $ hasYield = $ result ->hasYield ();
3919- $ throwPoints = $ result ->getThrowPoints ();
3920- $ impurePoints = $ result ->getImpurePoints ();
3921- $ isAlwaysTerminating = $ result ->isAlwaysTerminating ();
3923+ )->getScope ();
39223924 } elseif ($ expr instanceof Ternary) {
39233925 $ ternaryCondResult = $ this ->processExprNode ($ stmt , $ expr ->cond , $ scope , $ nodeCallback , $ context ->enterDeep ());
39243926 $ throwPoints = $ ternaryCondResult ->getThrowPoints ();
0 commit comments