Skip to content

Commit 1f3be3b

Browse files
authored
Add more specific @psalm-assert condition
Since psalm issue (vimeo/psalm#2409) resolved, we can use union types in assertions
1 parent ea13e7e commit 1f3be3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/SymfonyMessageSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function normalize(object $message): array
161161
}
162162

163163
/**
164-
* @psalm-assert array{message:array<string, mixed>, namespace:class-string} $data
164+
* @psalm-assert array{message:array<string, string|int|float|null>, namespace:class-string} $data
165165
*
166166
* @throws \UnexpectedValueException
167167
*/

0 commit comments

Comments
 (0)