Skip to content

Commit 45ecdf0

Browse files
authored
Merge pull request #1785 from WordPress/feature/1728-prefixallglobals-blacklist-php-prefix
PrefixAllGlobals: add "php" to the list of blacklisted prefixes
2 parents e22e842 + d17d268 commit 45ecdf0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WordPress/Sniffs/NamingConventions/PrefixAllGlobalsSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class PrefixAllGlobalsSniff extends AbstractFunctionParameterSniff {
6565
'wordpress' => true,
6666
'wp' => true,
6767
'_' => true,
68+
'php' => true, // See #1728, the 'php' prefix is reserved by PHP itself.
6869
);
6970

7071
/**

0 commit comments

Comments
 (0)