Skip to content

Commit

Permalink
Merge pull request #382 from Yoast/feature/fix-phpstan
Browse files Browse the repository at this point in the history
Fix PHPStan
  • Loading branch information
jrfnl authored Oct 1, 2024
2 parents 951c8fd + b7da770 commit e9223ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Yoast/Sniffs/NamingConventions/ValidHookNameSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ private function verify_yoast_hook_name( $stackPtr, $hook_name_param ) {
*/
if ( $this->prefix_quote_style === '"' ) {
\preg_match_all( '`[\\\\]+`', $this->found_prefix, $matches );
if ( empty( $matches ) === false ) {
if ( empty( $matches[0] ) === false ) {
$counter = 0;
foreach ( $matches[0] as $match ) {
if ( $match === '\\' ) {
Expand Down

0 comments on commit e9223ac

Please sign in to comment.