From 57466360aa4e454582201aa622b97ef4362669e3 Mon Sep 17 00:00:00 2001 From: John Mortlock Date: Tue, 10 Mar 2026 13:21:37 +1030 Subject: [PATCH] Fix type mismatch in Environment::start() $rrCommand parameter Environment::start() declares $rrCommand as ?array but passes it directly to startRoadRunner() which expects ?string. This causes a TypeError at runtime. Change start() to accept ?string to match startRoadRunner(). Co-Authored-By: Claude Opus 4.6 --- testing/src/Environment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/src/Environment.php b/testing/src/Environment.php index 2fa8119e..b14fd8ba 100644 --- a/testing/src/Environment.php +++ b/testing/src/Environment.php @@ -56,7 +56,7 @@ public static function create(?Command $command = null): self /** * @param array $envs */ - public function start(?array $rrCommand = null, int $commandTimeout = 10, array $envs = [], string $roadRunnerConfigFile = '.rr.yaml'): void + public function start(?string $rrCommand = null, int $commandTimeout = 10, array $envs = [], string $roadRunnerConfigFile = '.rr.yaml'): void { $this->startTemporalTestServer($commandTimeout); $this->startRoadRunner($rrCommand, $commandTimeout, $envs, $roadRunnerConfigFile);