We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b093d62 commit 6b4a43dCopy full SHA for 6b4a43d
WordPressVIPMinimum/Sniffs/Functions/DynamicCallsSniff.php
@@ -30,7 +30,7 @@ class DynamicCallsSniff extends Sniff {
30
*
31
* @var array
32
*/
33
- private $blacklisted_functions = [
+ private $function_names = [
34
'assert' => true,
35
'compact' => true,
36
'extract' => true,
@@ -141,7 +141,7 @@ private function collect_variables() {
141
142
$current_var_value = $this->strip_quotes( $this->tokens[ $value_ptr ]['content'] );
143
144
- if ( isset( $this->blacklisted_functions[ $current_var_value ] ) === false ) {
+ if ( isset( $this->function_names[ $current_var_value ] ) === false ) {
145
// Text string is not one of the ones we're looking for.
146
return;
147
}
0 commit comments