Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions WordPress/Helpers/ConstantsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public static function is_use_of_global_constant( File $phpcsFile, $stackPtr ) {
\T_INSTANCEOF => true,
\T_INSTEADOF => true,
\T_GOTO => true,
\T_AS => true,
);
$tokens_to_ignore += Tokens::$ooScopeTokens;
$tokens_to_ignore += Collections::objectOperators();
Expand Down
1 change: 0 additions & 1 deletion WordPress/Tests/WP/DiscouragedConstantsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public function getWarningList() {
60 => 1,
61 => 1,
63 => 1,
64 => 1,
66 => 1,
67 => 1,
71 => 1,
Expand Down
Loading