Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Oct 1, 2024
1 parent 951c8fd commit b7da770
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 b7da770

Please sign in to comment.