-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for null coalesce assign operator
(cherry picked from commit af90320)
- Loading branch information
1 parent
caa9079
commit 18e529e
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
$x ??= a(); | ||
----- | ||
Block#1 | ||
Expr_FuncCall | ||
name: LITERAL('a') | ||
result: Var#1 | ||
Expr_BinaryOp_Coalesce | ||
left: Var#2<$x> | ||
right: Var#1 | ||
result: Var#3 | ||
Expr_Assign | ||
var: Var#4<$x> | ||
expr: Var#3 | ||
result: Var#5 | ||
Terminal_Return |