Skip to content

Commit

Permalink
Merge pull request #2509 from WordPress/feature/fix-phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones authored Nov 14, 2024
2 parents ffec7bf + 4ce6dce commit 782d393
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ private function validate_prefixes() {
*/
private function record_potential_prefix_metric( $stackPtr, $construct_name ) {
if ( preg_match( '`^([A-Z]*[a-z0-9]*+)`', ltrim( $construct_name, '\$_' ), $matches ) > 0
&& isset( $matches[1] ) && '' !== $matches[1]
&& '' !== $matches[1]
) {
$this->phpcsFile->recordMetric( $stackPtr, 'Prefix all globals: potential prefixes - start of non-prefixed construct', strtolower( $matches[1] ) );
}
Expand Down

0 comments on commit 782d393

Please sign in to comment.