diff --git a/lib/PHPCfg/Parser.php b/lib/PHPCfg/Parser.php index ad71a9b..9e98889 100755 --- a/lib/PHPCfg/Parser.php +++ b/lib/PHPCfg/Parser.php @@ -836,6 +836,7 @@ protected function parseExprNode($expr) 'Expr_AssignOp_BitwiseAnd' => Op\Expr\BinaryOp\BitwiseAnd::class, 'Expr_AssignOp_BitwiseOr' => Op\Expr\BinaryOp\BitwiseOr::class, 'Expr_AssignOp_BitwiseXor' => Op\Expr\BinaryOp\BitwiseXor::class, + 'Expr_AssignOp_Coalesce' => Op\Expr\BinaryOp\Coalesce::class, 'Expr_AssignOp_Concat' => Op\Expr\BinaryOp\Concat::class, 'Expr_AssignOp_Div' => Op\Expr\BinaryOp\Div::class, 'Expr_AssignOp_Minus' => Op\Expr\BinaryOp\Minus::class, diff --git a/test/code/assign_coalesce.test b/test/code/assign_coalesce.test new file mode 100644 index 0000000..27c995e --- /dev/null +++ b/test/code/assign_coalesce.test @@ -0,0 +1,17 @@ + + right: Var#1 + result: Var#3 + Expr_Assign + var: Var#4<$x> + expr: Var#3 + result: Var#5 + Terminal_Return \ No newline at end of file