From cae6813969ab140d82102ca6b55875ff1dc8e694 Mon Sep 17 00:00:00 2001 From: George Boot <884482+georgeboot@users.noreply.github.com> Date: Tue, 22 Nov 2022 14:32:03 +0100 Subject: [PATCH] fix tests --- tests/Event/Http/Psr7BridgeTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Event/Http/Psr7BridgeTest.php b/tests/Event/Http/Psr7BridgeTest.php index 41759e67f..855f568dc 100644 --- a/tests/Event/Http/Psr7BridgeTest.php +++ b/tests/Event/Http/Psr7BridgeTest.php @@ -72,7 +72,7 @@ protected function assertPath(string $expected): void protected function assertQueryString(string $expected): void { $this->assertEquals($expected, $this->request->getUri()->getQuery()); - $this->assertEquals($expected, $this->request->getServerParams()['QUERY_STRING']); + $this->assertEquals($expected, $this->request->getServerParams()['QUERY_STRING'] ?? ''); } protected function assertQueryParameters(array $expected): void