File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ $fn = fn($a) => $a ? /* testTernaryThen */ fn() : string => 'a' : /* testTernary
76
76
/* testConstantDeclaration */
77
77
const FN = 'a ' ;
78
78
79
+ /* testConstantDeclarationLower */
80
+ const fn = 'a ' ;
81
+
79
82
class Foo {
80
83
/* testStaticMethodName */
81
84
public static function fn ($ param ) {
@@ -101,9 +104,15 @@ $a = Foo::fn($param);
101
104
/* testNonArrowConstantAccess */
102
105
$ a = MyClass::FN ;
103
106
107
+ /* testNonArrowConstantAccessMixed */
108
+ $ a = MyClass::Fn;
109
+
104
110
/* testNonArrowObjectMethodCall */
105
111
$ a = $ obj ->fn ($ param );
106
112
113
+ /* testNonArrowObjectMethodCallUpper */
114
+ $ a = $ obj ->FN ($ param );
115
+
107
116
/* testNonArrowNamespacedFunctionCall */
108
117
$ a = MyNS \Sub \Fn ($ param );
109
118
Original file line number Diff line number Diff line change @@ -604,6 +604,10 @@ public function dataNotAnArrowFunction()
604
604
'/* testConstantDeclaration */ ' ,
605
605
'FN ' ,
606
606
],
607
+ [
608
+ '/* testConstantDeclarationLower */ ' ,
609
+ 'fn ' ,
610
+ ],
607
611
['/* testStaticMethodName */ ' ],
608
612
['/* testPropertyAssignment */ ' ],
609
613
[
@@ -615,12 +619,19 @@ public function dataNotAnArrowFunction()
615
619
'/* testNonArrowConstantAccess */ ' ,
616
620
'FN ' ,
617
621
],
622
+ [
623
+ '/* testNonArrowConstantAccessMixed */ ' ,
624
+ 'Fn ' ,
625
+ ],
618
626
['/* testNonArrowObjectMethodCall */ ' ],
619
627
[
620
628
'/* testNonArrowNamespacedFunctionCall */ ' ,
621
629
'Fn ' ,
622
630
],
623
- ['/* testNonArrowNamespaceOperatorFunctionCall */ ' ],
631
+ [
632
+ '/* testNonArrowObjectMethodCallUpper */ ' ,
633
+ 'FN ' ,
634
+ ],
624
635
['/* testLiveCoding */ ' ],
625
636
];
626
637
You can’t perform that action at this time.
0 commit comments