Skip to content

Commit

Permalink
Update phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Dec 17, 2024
1 parent 18bff6b commit fc031a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.1",
"alleyinteractive/composer-wordpress-autoloader": "^1.0"
},
"require-dev": {
"alleyinteractive/alley-coding-standards": "^2.0",
"szepeviktor/phpstan-wordpress": "^1.1"
"szepeviktor/phpstan-wordpress": "^2.0"
},
"config": {
"allow-plugins": {
Expand Down
8 changes: 4 additions & 4 deletions src/class-wp-plugin-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ 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<int, string> $value The existing list of active plugins.
* @param array<int, string>|mixed $value The existing list of active plugins.
* @return array<int, string>
*/
public function filter_option_active_plugins( $value ): array {
Expand All @@ -273,13 +273,13 @@ public function filter_option_active_plugins( $value ): array {

sort( $value );

return $value;
return $value; // @phpstan-ignore-line should return
}

/**
* Exclude code-active plugins from the database option.
*
* @param array<int, string> $value The saved list of active plugins.
* @param array<int, string>|mixed $value The saved list of active plugins.
* @return array<int, string>
*/
public function filter_pre_update_option_active_plugins( $value ) {
Expand All @@ -291,7 +291,7 @@ public function filter_pre_update_option_active_plugins( $value ) {

sort( $value );

return $value;
return $value; // @phpstan-ignore-line should return
}

/**
Expand Down

0 comments on commit fc031a9

Please sign in to comment.