Skip to content

Commit 8def115

Browse files
committed
🐛 Fix bug ma solo per PHP 8.1+
1 parent a0baf99 commit 8def115

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"homepage": "https://github.com/Idearia/wp-cli-command",
88
"require": {
9-
"php": "^7.4|^8.0"
9+
"php": "^8.1"
1010
},
1111
"require-dev": {
1212
"php-stubs/wp-cli-stubs": "^2.7",

composer.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public static function invoke_multisite( array $args, array $assoc_args )
107107

108108
// If the --all-sites flag is set then run the handler on all sites.
109109
if ( $all_sites_flag ) {
110-
Utils::run_on_all_sites( [ static::class, 'invoke' ], $args, $assoc_args, static::$site_query );
110+
Utils::run_on_all_sites( static::invoke(...), $args, $assoc_args, static::$site_query );
111111
} else {
112112
// Run the handler on the current site.
113113
static::invoke( $args, $assoc_args );

0 commit comments

Comments
 (0)