From c939ea71e78cfe69602dbcde7a5718819cb471a5 Mon Sep 17 00:00:00 2001 From: Kajetan Date: Fri, 15 Nov 2024 12:04:42 +0100 Subject: [PATCH 1/2] Parameters for test server --- testing/src/Environment.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/src/Environment.php b/testing/src/Environment.php index 79fcdec4..c90524af 100644 --- a/testing/src/Environment.php +++ b/testing/src/Environment.php @@ -50,7 +50,10 @@ public function start(string $rrCommand = null, int $commandTimeout = 10, array $this->startRoadRunner($rrCommand, $commandTimeout, $envs); } - public function startTemporalServer(int $commandTimeout = 10): void + /** + * @param string[] $parameters + */ + public function startTemporalServer(int $commandTimeout = 10, array $parameters = []): void { $temporalPort = \parse_url(\getenv('TEMPORAL_ADDRESS') ?: '127.0.0.1:7233', PHP_URL_PORT); @@ -67,6 +70,7 @@ public function startTemporalServer(int $commandTimeout = 10): void '--search-attribute', 'bar=int', '--log-level', 'error', '--headless', + ...$parameters, ], ); $this->temporalServerProcess->setTimeout($commandTimeout); From 6dc0248c9e61abc58e8bbdbd00ae6eb7a29e86e9 Mon Sep 17 00:00:00 2001 From: Aleksei Gagarin Date: Fri, 15 Nov 2024 15:21:11 +0400 Subject: [PATCH 2/2] Fix phpdoc --- 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 c90524af..2edfe4b5 100644 --- a/testing/src/Environment.php +++ b/testing/src/Environment.php @@ -51,7 +51,7 @@ public function start(string $rrCommand = null, int $commandTimeout = 10, array } /** - * @param string[] $parameters + * @param list $parameters */ public function startTemporalServer(int $commandTimeout = 10, array $parameters = []): void {