Skip to content

Commit 1a8b51c

Browse files
jrfnlGaryJones
andcommitted
AbstractVariableRestrictionsSniff: use WPCS RulesetPropertyHelper::merge_custom_array()
Co-authored-by: Gary Jones <[email protected]>
1 parent f124466 commit 1a8b51c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WordPressVIPMinimum/Sniffs/AbstractVariableRestrictionsSniff.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use PHPCSUtils\Utils\GetTokensAsString;
1313
use PHPCSUtils\Utils\MessageHelper;
1414
use WordPressCS\WordPress\Helpers\ContextHelper;
15+
use WordPressCS\WordPress\Helpers\RulesetPropertyHelper;
1516

1617
/**
1718
* Restricts usage of some variables.
@@ -129,7 +130,7 @@ public function process_token( $stackPtr ) {
129130

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

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

0 commit comments

Comments
 (0)