summaryrefslogtreecommitdiff
path: root/Zend/zend_ast.h
diff options
context:
space:
mode:
authorIlija Tovilo <ilija.tovilo@me.com>2020-05-24 12:42:48 +0200
committerIlija Tovilo <ilija.tovilo@me.com>2020-07-24 10:05:03 +0200
commit9bf119832dbf625174794834c71b1e793450d87f (patch)
treedf6f1dfbc9dfdeaa8d2313ad43a4eff982b6eaca /Zend/zend_ast.h
parent293d2f99f1c418103af6b239ad0693b89d454aed (diff)
downloadphp-git-9bf119832dbf625174794834c71b1e793450d87f.tar.gz
Implement nullsafe ?-> operator
RFC: https://wiki.php.net/rfc/nullsafe_operator Closes GH-5619. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
Diffstat (limited to 'Zend/zend_ast.h')
-rw-r--r--Zend/zend_ast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_ast.h b/Zend/zend_ast.h
index 13f43bdc41..79af596f24 100644
--- a/Zend/zend_ast.h
+++ b/Zend/zend_ast.h
@@ -108,6 +108,7 @@ enum _zend_ast_kind {
/* 2 child nodes */
ZEND_AST_DIM = 2 << ZEND_AST_NUM_CHILDREN_SHIFT,
ZEND_AST_PROP,
+ ZEND_AST_NULLSAFE_PROP,
ZEND_AST_STATIC_PROP,
ZEND_AST_CALL,
ZEND_AST_CLASS_CONST,
@@ -147,6 +148,7 @@ enum _zend_ast_kind {
/* 3 child nodes */
ZEND_AST_METHOD_CALL = 3 << ZEND_AST_NUM_CHILDREN_SHIFT,
+ ZEND_AST_NULLSAFE_METHOD_CALL,
ZEND_AST_STATIC_CALL,
ZEND_AST_CONDITIONAL,