Skip to content

Commit e712a4f

Browse files
committed
remove T_INNER_REF
1 parent 0fc77cb commit e712a4f

File tree

5 files changed

+2
-23
lines changed

5 files changed

+2
-23
lines changed

Zend/zend_language_parser.y

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
231231
%token T_DOLLAR_OPEN_CURLY_BRACES "'${'"
232232
%token T_CURLY_OPEN "'{$'"
233233
%token T_PAAMAYIM_NEKUDOTAYIM "'::'"
234-
%token T_INNER_REF "':>'"
235234
%token T_NS_SEPARATOR "'\\'"
236235
%token T_ELLIPSIS "'...'"
237236
%token T_COALESCE "'??'"
@@ -875,14 +874,7 @@ type_expr_without_static:
875874
type_without_static:
876875
T_ARRAY { $$ = zend_ast_create_ex(ZEND_AST_TYPE, IS_ARRAY); }
877876
| T_CALLABLE { $$ = zend_ast_create_ex(ZEND_AST_TYPE, IS_CALLABLE); }
878-
| inner_type_without_static { $$ = $1; }
879-
;
880-
881-
inner_type_without_static:
882-
inner_type_without_static T_INNER_REF name
883-
{ $$ = zend_ast_create(ZEND_AST_INNER_CLASS, $1, $3); }
884-
| name
885-
{ $$ = $1; }
877+
| name { $$ = $1; }
886878
;
887879

888880
union_type_without_static_element:
@@ -1431,8 +1423,6 @@ class_name:
14311423
{ zval zv; ZVAL_INTERNED_STR(&zv, ZSTR_KNOWN(ZEND_STR_STATIC));
14321424
$$ = zend_ast_create_zval_ex(&zv, ZEND_NAME_NOT_FQ); }
14331425
| name { $$ = $1; }
1434-
| class_name T_INNER_REF name
1435-
{ $$ = zend_ast_create(ZEND_AST_INNER_CLASS, $1, $3); }
14361426
;
14371427

14381428
class_name_reference:

Zend/zend_language_scanner.l

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,10 +1601,6 @@ OPTIONAL_WHITESPACE_OR_COMMENTS ({WHITESPACE}|{MULTI_LINE_COMMENT}|{SINGLE_LINE_
16011601
RETURN_TOKEN(T_PAAMAYIM_NEKUDOTAYIM);
16021602
}
16031603

1604-
<ST_IN_SCRIPTING>":>" {
1605-
RETURN_TOKEN(T_INNER_REF);
1606-
}
1607-
16081604
<ST_IN_SCRIPTING>"..." {
16091605
RETURN_TOKEN(T_ELLIPSIS);
16101606
}

ext/tokenizer/tokenizer_data.c

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/tokenizer/tokenizer_data.stub.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,6 @@
712712
* @cvalue T_PAAMAYIM_NEKUDOTAYIM
713713
*/
714714
const T_PAAMAYIM_NEKUDOTAYIM = UNKNOWN;
715-
/**
716-
* @var int
717-
* @cvalue T_INNER_REF
718-
*/
719-
const T_INNER_REF = UNKNOWN;
720715
/**
721716
* @var int
722717
* @cvalue T_NS_SEPARATOR

ext/tokenizer/tokenizer_data_arginfo.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)