Skip to content

Commit eb9e9ff

Browse files
committed
Update php 8.0+ tests
1 parent bc198e6 commit eb9e9ff

19 files changed

+101
-116
lines changed

tests/cases/parser80/attributes1.php.tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@
7272
},
7373
"colonToken": null,
7474
"questionToken": null,
75-
"returnType": null,
76-
"otherReturnTypes": null,
75+
"returnTypeList": null,
7776
"compoundStatementOrSemicolon": {
7877
"CompoundStatementNode": {
7978
"openBrace": {

tests/cases/parser80/attributes10.php.tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@
116116
"anonymousFunctionUseClause": null,
117117
"colonToken": null,
118118
"questionToken": null,
119-
"returnType": null,
120-
"otherReturnTypes": null,
119+
"returnTypeList": null,
121120
"compoundStatementOrSemicolon": {
122121
"CompoundStatementNode": {
123122
"openBrace": {

tests/cases/parser80/attributes12.php.tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
},
3535
"colonToken": null,
3636
"questionToken": null,
37-
"returnType": null,
38-
"otherReturnTypes": null,
37+
"returnTypeList": null,
3938
"compoundStatementOrSemicolon": {
4039
"CompoundStatementNode": {
4140
"openBrace": {

tests/cases/parser80/attributes15.php.tree

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"ArgumentExpression": {
8686
"name": null,
8787
"colonToken": null,
88-
"byRefToken": null,
8988
"dotDotDotToken": null,
9089
"expression": {
9190
"NumericLiteral": {

tests/cases/parser80/attributes16.php.tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
],
5656
"modifiers": [],
5757
"questionToken": null,
58-
"typeDeclaration": null,
59-
"otherTypeDeclarations": null
58+
"typeDeclarationList": null
6059
}
6160
}
6261
],

tests/cases/parser80/attributes17.php.tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
],
5757
"modifiers": [],
5858
"questionToken": null,
59-
"typeDeclaration": null,
60-
"otherTypeDeclarations": null
59+
"typeDeclarationList": null
6160
}
6261
}
6362
],

tests/cases/parser80/attributes18.php.tree

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
],
5656
"visibilityToken": null,
5757
"questionToken": null,
58-
"typeDeclaration": null,
59-
"otherTypeDeclarations": null,
58+
"typeDeclarationList": null,
6059
"byRefToken": null,
6160
"dotDotDotToken": null,
6261
"variableName": {
@@ -78,8 +77,7 @@
7877
},
7978
"colonToken": null,
8079
"questionToken": null,
81-
"returnType": null,
82-
"otherReturnTypes": null,
80+
"returnTypeList": null,
8381
"arrowToken": {
8482
"error": "MissingToken",
8583
"kind": "DoubleArrowToken",

tests/cases/parser80/attributes2.php.tree

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"ArgumentExpression": {
4949
"name": null,
5050
"colonToken": null,
51-
"byRefToken": null,
5251
"dotDotDotToken": null,
5352
"expression": {
5453
"StringLiteral": {

tests/cases/parser80/attributes3.php.tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@
120120
},
121121
"colonToken": null,
122122
"questionToken": null,
123-
"returnType": null,
124-
"otherReturnTypes": null,
123+
"returnTypeList": null,
125124
"compoundStatementOrSemicolon": {
126125
"CompoundStatementNode": {
127126
"openBrace": {

tests/cases/parser80/attributes4.php.tree

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@
9191
}
9292
],
9393
"questionToken": null,
94-
"typeDeclaration": null,
95-
"otherTypeDeclarations": null,
94+
"typeDeclarationList": null,
9695
"propertyElements": {
9796
"ExpressionList": {
9897
"children": [
@@ -188,7 +187,6 @@
188187
"ArgumentExpression": {
189188
"name": null,
190189
"colonToken": null,
191-
"byRefToken": null,
192190
"dotDotDotToken": null,
193191
"expression": {
194192
"BinaryExpression": {

tests/cases/parser80/attributes5.php.tree

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@
7373
],
7474
"visibilityToken": null,
7575
"questionToken": null,
76-
"typeDeclaration": null,
77-
"otherTypeDeclarations": null,
76+
"typeDeclarationList": null,
7877
"byRefToken": null,
7978
"dotDotDotToken": null,
8079
"variableName": {
@@ -98,8 +97,7 @@
9897
},
9998
"colonToken": null,
10099
"questionToken": null,
101-
"returnType": null,
102-
"otherReturnTypes": null,
100+
"returnTypeList": null,
103101
"compoundStatementOrSemicolon": {
104102
"CompoundStatementNode": {
105103
"openBrace": {

tests/cases/parser80/attributes7.php.tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@
7373
},
7474
"colonToken": null,
7575
"questionToken": null,
76-
"returnType": null,
77-
"otherReturnTypes": null,
76+
"returnTypeList": null,
7877
"compoundStatementOrSemicolon": {
7978
"CompoundStatementNode": {
8079
"openBrace": {

tests/cases/parser80/attributes8.php.tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@
7878
],
7979
"modifiers": [],
8080
"questionToken": null,
81-
"typeDeclaration": null,
82-
"otherTypeDeclarations": null
81+
"typeDeclarationList": null
8382
}
8483
}
8584
],

tests/cases/parser80/attributes9.php.tree

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@
9898
},
9999
"colonToken": null,
100100
"questionToken": null,
101-
"returnType": null,
102-
"otherReturnTypes": null,
101+
"returnTypeList": null,
103102
"arrowToken": {
104103
"kind": "DoubleArrowToken",
105104
"textLength": 2

tests/cases/parser80/matchExpression5.php.tree

Lines changed: 66 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -12,83 +12,79 @@
1212
}
1313
},
1414
{
15-
"ExpressionStatement": {
16-
"expression": {
17-
"EchoExpression": {
18-
"echoKeyword": {
19-
"kind": "EchoKeyword",
20-
"textLength": 4
21-
},
22-
"expressions": {
23-
"ExpressionList": {
24-
"children": [
25-
{
26-
"MatchExpression": {
27-
"matchToken": {
28-
"kind": "MatchKeyword",
29-
"textLength": 5
30-
},
31-
"openParen": {
32-
"kind": "OpenParenToken",
33-
"textLength": 1
34-
},
35-
"expression": {
36-
"error": "MissingToken",
37-
"kind": "Expression",
38-
"textLength": 0
39-
},
40-
"closeParen": {
41-
"kind": "CloseParenToken",
42-
"textLength": 1
43-
},
44-
"openBrace": {
45-
"kind": "OpenBraceToken",
46-
"textLength": 1
47-
},
48-
"arms": {
49-
"MatchExpressionArmList": {
50-
"children": [
51-
{
52-
"MatchArm": {
53-
"conditionList": {
54-
"MatchArmConditionList": {
55-
"children": [
56-
{
57-
"StringLiteral": {
58-
"startQuote": null,
59-
"children": {
60-
"kind": "StringLiteralToken",
61-
"textLength": 7
62-
},
63-
"endQuote": null
64-
}
65-
}
66-
]
15+
"EchoStatement": {
16+
"echoKeyword": {
17+
"kind": "EchoKeyword",
18+
"textLength": 4
19+
},
20+
"expressions": {
21+
"ExpressionList": {
22+
"children": [
23+
{
24+
"MatchExpression": {
25+
"matchToken": {
26+
"kind": "MatchKeyword",
27+
"textLength": 5
28+
},
29+
"openParen": {
30+
"kind": "OpenParenToken",
31+
"textLength": 1
32+
},
33+
"expression": {
34+
"error": "MissingToken",
35+
"kind": "Expression",
36+
"textLength": 0
37+
},
38+
"closeParen": {
39+
"kind": "CloseParenToken",
40+
"textLength": 1
41+
},
42+
"openBrace": {
43+
"kind": "OpenBraceToken",
44+
"textLength": 1
45+
},
46+
"arms": {
47+
"MatchExpressionArmList": {
48+
"children": [
49+
{
50+
"MatchArm": {
51+
"conditionList": {
52+
"MatchArmConditionList": {
53+
"children": [
54+
{
55+
"StringLiteral": {
56+
"startQuote": null,
57+
"children": {
58+
"kind": "StringLiteralToken",
59+
"textLength": 7
60+
},
61+
"endQuote": null
62+
}
6763
}
68-
},
69-
"arrowToken": {
70-
"kind": "DoubleArrowToken",
71-
"textLength": 2
72-
},
73-
"body": {
74-
"error": "MissingToken",
75-
"kind": "Expression",
76-
"textLength": 0
77-
}
64+
]
7865
}
66+
},
67+
"arrowToken": {
68+
"kind": "DoubleArrowToken",
69+
"textLength": 2
70+
},
71+
"body": {
72+
"error": "MissingToken",
73+
"kind": "Expression",
74+
"textLength": 0
7975
}
80-
]
76+
}
8177
}
82-
},
83-
"closeBrace": {
84-
"kind": "CloseBraceToken",
85-
"textLength": 1
86-
}
78+
]
8779
}
80+
},
81+
"closeBrace": {
82+
"kind": "CloseBraceToken",
83+
"textLength": 1
8884
}
89-
]
85+
}
9086
}
91-
}
87+
]
9288
}
9389
},
9490
"semicolon": {

0 commit comments

Comments
 (0)