Skip to content

Commit

Permalink
Update merge_custom_array() reference
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones committed Jun 22, 2023
1 parent 923af8d commit f567b3e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use PHPCSUtils\Utils\MessageHelper;
use WordPressCS\WordPress\Helpers\ContextHelper;
use WordPressCS\WordPress\Helpers\RulesetPropertyHelper;

/**
* Restricts usage of some variables.
Expand Down Expand Up @@ -128,7 +129,7 @@ public function process_token( $stackPtr ) {

$token = $this->tokens[ $stackPtr ];

$this->excluded_groups = static::merge_custom_array( $this->exclude );
$this->excluded_groups = RulesetPropertyHelper::merge_custom_array( $this->exclude );
if ( array_diff_key( $this->groups_cache, $this->excluded_groups ) === [] ) {
// All groups have been excluded.
// Don't remove the listener as the exclude property can be changed inline.
Expand Down

0 comments on commit f567b3e

Please sign in to comment.