diff --git a/src/class-wp-plugin-loader.php b/src/class-wp-plugin-loader.php index 4ae50f3..1954f82 100644 --- a/src/class-wp-plugin-loader.php +++ b/src/class-wp-plugin-loader.php @@ -261,11 +261,11 @@ public function filter_plugin_action_links( $actions, $plugin_file ): array { /** * Filters the list of active plugins to include the ones we loaded via code. * - * @param array|mixed $value The existing list of active plugins. + * @param array $value The existing list of active plugins. * @return array */ public function filter_option_active_plugins( $value ): array { - if ( ! is_array( $value ) ) { + if ( ! is_array( $value ) ) { // @phpstan-ignore-line to true $value = []; } @@ -273,17 +273,17 @@ public function filter_option_active_plugins( $value ): array { sort( $value ); - return $value; // @phpstan-ignore-line should return + return $value; } /** * Exclude code-active plugins from the database option. * - * @param array|mixed $value The saved list of active plugins. + * @param array $value The saved list of active plugins. * @return array */ public function filter_pre_update_option_active_plugins( $value ) { - if ( ! is_array( $value ) ) { + if ( ! is_array( $value ) ) { // @phpstan-ignore-line to true $value = []; } @@ -291,7 +291,7 @@ public function filter_pre_update_option_active_plugins( $value ) { sort( $value ); - return $value; // @phpstan-ignore-line should return + return $value; } /**