From 46c19c869ad22defa71ccdbf5c7b750b977370b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6sing?= <2189546+boesing@users.noreply.github.com> Date: Thu, 17 Jun 2021 10:09:04 +0200 Subject: [PATCH] qa: ensure psalm detects proper types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com> --- test/ParameterPostProcessorTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/ParameterPostProcessorTest.php b/test/ParameterPostProcessorTest.php index 1989c02..68883b0 100644 --- a/test/ParameterPostProcessorTest.php +++ b/test/ParameterPostProcessorTest.php @@ -178,10 +178,12 @@ public function testResolvedParametersApplyTypesafety(): void ] ))([]); - $processedParameters = $processed['parameters']; + $processedParameters = $processed['parameters']; + /** @var array $processedNestedParameters */ $processedNestedParameters = $processedParameters['nested']; unset($processedParameters['nested']); + /** @psalm-suppress MixedAssignment */ foreach ($processedNestedParameters as $parameter => $parameterValue) { $originalValue = $parameters[$parameter]; self::assertEquals($originalValue, $parameterValue);