Skip to content

Commit 4944d88

Browse files
committed
Use array union instead of array_merge() to create the list of known discouraged values
1 parent 325f3ba commit 4944d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Sniffs/WP/OptionAutoloadSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private function check_autoload_value( array $autoload_info, $function_name ) {
378378

379379
$autoload_value = TextStrings::stripQuotes( $autoload_info['clean'] );
380380

381-
$known_discouraged_values = array_merge( $this->deprecated_values, $this->internal_values_non_fixable, $this->internal_values_fixable );
381+
$known_discouraged_values = $this->deprecated_values + $this->internal_values_non_fixable + $this->internal_values_fixable;
382382

383383
if ( isset( $known_discouraged_values[ $autoload_value ] ) ) {
384384
$metric_value = $autoload_value;

0 commit comments

Comments
 (0)