Skip to content

Commit 44566de

Browse files
Ocramiusteohhanhui
authored andcommitted
Removed @psalm-param array{...} annotations
These annotations were too specific, since the returned type would never match anyway. Specifically, psalm cannot yet declare `ArrayType1&ArrayType2`, so an union type of two arrays is not currently something we can declare explicitly. Ref: api-platform/core#3402 (comment)
1 parent affdd7d commit 44566de

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

TypeFactory.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,6 @@ private function getClassType(?string $className, string $format = 'json', ?bool
156156
* @param array<string, mixed> $jsonSchema
157157
*
158158
* @return array<string, mixed>
159-
*
160-
* @psalm-param array{type=: string|list<string>} $jsonSchema
161-
*
162-
* @psalm-return array{type=: string|list<string>, $ref=: string}
163159
*/
164160
private function addNullabilityToTypeDefinition(array $jsonSchema, Type $type): array
165161
{

0 commit comments

Comments
 (0)