@@ -573,7 +573,7 @@ public function testNotAnArrowFunction($testMarker)
573573 {
574574 $ tokens = self ::$ phpcsFile ->getTokens ();
575575
576- $ token = $ this ->getTargetToken (' /* testFunctionName */ ' , [T_STRING , T_FN ], 'fn ' );
576+ $ token = $ this ->getTargetToken ($ testMarker , [T_STRING , T_FN ], 'fn ' );
577577 $ tokenArray = $ tokens [$ token ];
578578
579579 $ this ->assertSame ('T_STRING ' , $ tokenArray ['type ' ], 'Token tokenized as ' .$ tokenArray ['type ' ].', not T_STRING ' );
@@ -598,11 +598,14 @@ public function testNotAnArrowFunction($testMarker)
598598 public function dataNotAnArrowFunction ()
599599 {
600600 return [
601+ ['/* testConstantDeclaration */ ' ],
601602 ['/* testFunctionName */ ' ],
602603 ['/* testStaticMethodName */ ' ],
603604 ['/* testAnonClassMethodName */ ' ],
604605 ['/* testNonArrowStaticMethodCall */ ' ],
605606 ['/* testNonArrowStaticMethodCallWithChaining */ ' ],
607+ ['/* testNonArrowStaticConstant */ ' ],
608+ ['/* testNonArrowStaticConstantDeref */ ' ],
606609 ['/* testNonArrowObjectMethodCall */ ' ],
607610 ['/* testNonArrowNamespacedFunctionCall */ ' ],
608611 ['/* testNonArrowNamespaceOperatorFunctionCall */ ' ],
0 commit comments