diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16f3a6f..c8170ef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,7 @@ jobs: needs: lint strategy: matrix: - php-version: ['7.4'] + php-version: ['7.4', '8.2'] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/features/valet-new-project-bedrock.feature b/features/valet-new-project-bedrock.feature index d3bfa93..dac57e9 100644 --- a/features/valet-new-project-bedrock.feature +++ b/features/valet-new-project-bedrock.feature @@ -55,7 +55,7 @@ Feature: It can create new installs for Valet-supported WordPress projects. """ DB_PREFIX='foo' """ - And I run `wp eval 'echo getenv("DB_PREFIX");' --path={PATH}/{PROJECT}/web/wp/` + And I run `wp eval 'echo $_SERVER["DB_PREFIX"];' --path={PATH}/{PROJECT}/web/wp/` Then STDOUT should be: """ foo @@ -70,7 +70,7 @@ Feature: It can create new installs for Valet-supported WordPress projects. """ DB_HOST='127.0.0.1' """ - And I run `wp eval 'echo getenv("DB_HOST");' --path={PROJECT}/web/wp/` + And I run `wp eval 'echo $_SERVER["DB_HOST"];' --path={PROJECT}/web/wp/` Then STDOUT should be: """ 127.0.0.1 diff --git a/src/Process/ShellCommand.php b/src/Process/ShellCommand.php index de765c0..9a33b1e 100644 --- a/src/Process/ShellCommand.php +++ b/src/Process/ShellCommand.php @@ -49,7 +49,7 @@ protected function run($command, $positional = [], $assoc = []) $assoc = \WP_CLI\Utils\assoc_args_to_str($assoc); $run_command = $this->rootCommand() . " $command $positional $assoc"; - Command::debug("Running: $run_command"); + Command::debug(static::class, "Running: $run_command"); $result = Process::create( $run_command, @@ -57,8 +57,6 @@ protected function run($command, $positional = [], $assoc = []) $this->getEnv() )->run(); - $result->caller = static::class; - Command::debug($result); if ($result->return_code > 0) {