@@ -55,29 +55,33 @@ public function testSquareBrackets($testMarker)
55
55
public static function dataSquareBrackets ()
56
56
{
57
57
return [
58
- 'array access 1 ' => ['/* testArrayAccess1 */ ' ],
59
- 'array access 2 ' => ['/* testArrayAccess2 */ ' ],
60
- 'array assignment ' => ['/* testArrayAssignment */ ' ],
61
- 'function call dereferencing ' => ['/* testFunctionCallDereferencing */ ' ],
62
- 'method call dereferencing ' => ['/* testMethodCallDereferencing */ ' ],
63
- 'static method call dereferencing ' => ['/* testStaticMethodCallDereferencing */ ' ],
64
- 'property dereferencing ' => ['/* testPropertyDereferencing */ ' ],
65
- 'property dereferencing with inaccessable name ' => ['/* testPropertyDereferencingWithInaccessibleName */ ' ],
66
- 'static property dereferencing ' => ['/* testStaticPropertyDereferencing */ ' ],
67
- 'string dereferencing single quotes ' => ['/* testStringDereferencing */ ' ],
68
- 'string dereferencing double quotes ' => ['/* testStringDereferencingDoubleQuoted */ ' ],
69
- 'global constant dereferencing ' => ['/* testConstantDereferencing */ ' ],
70
- 'class constant dereferencing ' => ['/* testClassConstantDereferencing */ ' ],
71
- 'magic constant dereferencing ' => ['/* testMagicConstantDereferencing */ ' ],
72
- 'array access with curly braces ' => ['/* testArrayAccessCurlyBraces */ ' ],
73
- 'array literal dereferencing ' => ['/* testArrayLiteralDereferencing */ ' ],
74
- 'short array literal dereferencing ' => ['/* testShortArrayLiteralDereferencing */ ' ],
75
- 'class member dereferencing on instantiation 1 ' => ['/* testClassMemberDereferencingOnInstantiation1 */ ' ],
76
- 'class member dereferencing on instantiation 2 ' => ['/* testClassMemberDereferencingOnInstantiation2 */ ' ],
77
- 'class member dereferencing on clone ' => ['/* testClassMemberDereferencingOnClone */ ' ],
78
- 'nullsafe method call dereferencing ' => ['/* testNullsafeMethodCallDereferencing */ ' ],
79
- 'interpolated string dereferencing ' => ['/* testInterpolatedStringDereferencing */ ' ],
80
- 'live coding ' => ['/* testLiveCoding */ ' ],
58
+ 'array access 1 ' => ['/* testArrayAccess1 */ ' ],
59
+ 'array access 2 ' => ['/* testArrayAccess2 */ ' ],
60
+ 'array assignment ' => ['/* testArrayAssignment */ ' ],
61
+ 'function call dereferencing ' => ['/* testFunctionCallDereferencing */ ' ],
62
+ 'method call dereferencing ' => ['/* testMethodCallDereferencing */ ' ],
63
+ 'static method call dereferencing ' => ['/* testStaticMethodCallDereferencing */ ' ],
64
+ 'property dereferencing ' => ['/* testPropertyDereferencing */ ' ],
65
+ 'property dereferencing with inaccessable name ' => ['/* testPropertyDereferencingWithInaccessibleName */ ' ],
66
+ 'static property dereferencing ' => ['/* testStaticPropertyDereferencing */ ' ],
67
+ 'string dereferencing single quotes ' => ['/* testStringDereferencing */ ' ],
68
+ 'string dereferencing double quotes ' => ['/* testStringDereferencingDoubleQuoted */ ' ],
69
+ 'global constant dereferencing ' => ['/* testConstantDereferencing */ ' ],
70
+ 'class constant dereferencing ' => ['/* testClassConstantDereferencing */ ' ],
71
+ 'magic constant dereferencing ' => ['/* testMagicConstantDereferencing */ ' ],
72
+ 'array access with curly braces ' => ['/* testArrayAccessCurlyBraces */ ' ],
73
+ 'array literal dereferencing ' => ['/* testArrayLiteralDereferencing */ ' ],
74
+ 'short array literal dereferencing ' => ['/* testShortArrayLiteralDereferencing */ ' ],
75
+ 'class member dereferencing on instantiation 1 ' => ['/* testClassMemberDereferencingOnInstantiation1 */ ' ],
76
+ 'class member dereferencing on instantiation 2 ' => ['/* testClassMemberDereferencingOnInstantiation2 */ ' ],
77
+ 'class member dereferencing on clone ' => ['/* testClassMemberDereferencingOnClone */ ' ],
78
+ 'nullsafe method call dereferencing ' => ['/* testNullsafeMethodCallDereferencing */ ' ],
79
+ 'interpolated string dereferencing ' => ['/* testInterpolatedStringDereferencing */ ' ],
80
+ 'new anonymous class expression dereferencing 1 ' => ['/* testNewAnonClassNoParenthesesExpressionDereferencing */ ' ],
81
+ 'new anonymous class expression dereferencing 2 ' => ['/* testNewAnonClassParenthesesExpressionDereferencing */ ' ],
82
+ 'new anonymous class expression dereferencing 3 ' => ['/* testNewAnonClassExtendsExpressionDereferencing */ ' ],
83
+ 'new anonymous class expression dereferencing 4 ' => ['/* testNewAnonClassImplementsExpressionDereferencing */ ' ],
84
+ 'live coding ' => ['/* testLiveCoding */ ' ],
81
85
];
82
86
83
87
}//end dataSquareBrackets()
@@ -133,6 +137,7 @@ public static function dataShortArrays()
133
137
'short list after braced control structure ' => ['/* testShortListDeclarationAfterBracedControlStructure */ ' ],
134
138
'short list after non-braced control structure ' => ['/* testShortListDeclarationAfterNonBracedControlStructure */ ' ],
135
139
'short list after alternative control structure ' => ['/* testShortListDeclarationAfterAlternativeControlStructure */ ' ],
140
+ 'short list after class declaration ' => ['/* testShortListDeclarationAfterClassDeclaration */ ' ],
136
141
];
137
142
138
143
}//end dataShortArrays()
0 commit comments