Skip to content

Commit 240ecc4

Browse files
committed
Rename property valid_values_other_functions to valid_values_wp_set_option_functions
1 parent 5048050 commit 240ecc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WordPress/Sniffs/WP/OptionAutoloadSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class OptionAutoloadSniff extends AbstractFunctionParameterSniff {
5858
*
5959
* @var array<string, string>
6060
*/
61-
private $valid_values_other_functions = array(
61+
private $valid_values_wp_set_option_functions = array(
6262
'true' => 'true',
6363
'false' => 'false',
6464
);
@@ -349,7 +349,7 @@ private function check_autoload_value( array $autoload_info, $function_name ) {
349349
if ( isset( $this->autoload_is_optional[ $function_name ] ) ) {
350350
$valid_values = $this->valid_values_add_and_update;
351351
} else {
352-
$valid_values = $this->valid_values_other_functions;
352+
$valid_values = $this->valid_values_wp_set_option_functions;
353353
}
354354

355355
if ( isset( $valid_values[ $normalized_value ] ) ) {

0 commit comments

Comments
 (0)