Skip to content

Commit

Permalink
Merge pull request #23 from boesing/qa/static-code-analysis
Browse files Browse the repository at this point in the history
qa: ensure psalm detects proper types
  • Loading branch information
boesing authored Jun 17, 2021
2 parents e83a54d + 46c19c8 commit b7b0702
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/ParameterPostProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,12 @@ public function testResolvedParametersApplyTypesafety(): void
]
))([]);

$processedParameters = $processed['parameters'];
$processedParameters = $processed['parameters'];
/** @var array<string,mixed> $processedNestedParameters */
$processedNestedParameters = $processedParameters['nested'];
unset($processedParameters['nested']);

/** @psalm-suppress MixedAssignment */
foreach ($processedNestedParameters as $parameter => $parameterValue) {
$originalValue = $parameters[$parameter];
self::assertEquals($originalValue, $parameterValue);
Expand Down

0 comments on commit b7b0702

Please sign in to comment.