diff --git a/src/Php/CompilerBase.php b/src/Php/CompilerBase.php index fad1a54b..05726f23 100644 --- a/src/Php/CompilerBase.php +++ b/src/Php/CompilerBase.php @@ -573,6 +573,8 @@ class CompilerBase extends \PhpAot\Core\Translator return $this->parseAssignOpMod($expr); case 'Expr_AssignOp_Concat': return $this->parseAssignOpConcat($expr); + case 'Expr_AssignOp_ShiftLeft': + return $this->parseAssignOpShiftLeft($expr); case 'Expr_AssignOp_ShiftRight': return $this->parseAssignOpShiftRight($expr); case 'Expr_AssignOp_BitwiseAnd': @@ -4158,6 +4160,11 @@ class CompilerBase extends \PhpAot\Core\Translator return $getProperty; } + protected function parseAssignOpShiftLeft(Expr\AssignOp\ShiftLeft $node): string + { + return $this->parseAssignOp($node, '<<='); + } + protected function parseAssignOpShiftRight(Expr\AssignOp\ShiftRight $node): string { return $this->parseAssignOp($node, '>>=');