Skip to content

Commit

Permalink
Merge branch 'php-8.0/generic-uppercaseconstantname-support-nullsafe-…
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Sep 2, 2020
2 parents 4dfbad3 + 8a17a80 commit f2a099d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function process(File $phpcsFile, $stackPtr)
$prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
if ($tokens[$prev]['code'] === T_OBJECT_OPERATOR
|| $tokens[$prev]['code'] === T_DOUBLE_COLON
|| $tokens[$prev]['code'] === T_NULLSAFE_OBJECT_OPERATOR
) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ class ClassConstBowOutTest {
const // phpcs:ignore Standard.Category.Sniff
some_constant = 2;
}

$foo->getBar()?->define('foo');

0 comments on commit f2a099d

Please sign in to comment.