diff --git a/composer.json b/composer.json index 630d8658..c6c570d0 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ }, "require-dev": { "wp-cli/entity-command": "^1.3 || ^2", - "wp-cli/wp-cli-tests": "^3.1" + "wp-cli/wp-cli-tests": "^4" }, "config": { "process-timeout": 7200, diff --git a/rewrite-command.php b/rewrite-command.php index bbfbc379..44b87fd9 100644 --- a/rewrite-command.php +++ b/rewrite-command.php @@ -4,7 +4,7 @@ return; } -$wpcli_rewrite_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php'; +$wpcli_rewrite_autoloader = __DIR__ . '/vendor/autoload.php'; if ( file_exists( $wpcli_rewrite_autoloader ) ) { require_once $wpcli_rewrite_autoloader; } diff --git a/src/Rewrite_Command.php b/src/Rewrite_Command.php index 424f5077..bbb23ab6 100644 --- a/src/Rewrite_Command.php +++ b/src/Rewrite_Command.php @@ -335,7 +335,7 @@ private static function apache_modules() { // needed for get_home_path() and .htaccess location $_SERVER['SCRIPT_FILENAME'] = ABSPATH; - function apache_get_modules() { + function apache_get_modules() { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals return WP_CLI::get_config( 'apache_modules' ); } }