Skip to content

Commit 899f1e3

Browse files
committed
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: #3402 (comment)
1 parent e853b4e commit 899f1e3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/JsonSchema/TypeFactory.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ private function getClassType(?string $className, string $format = 'json', ?bool
159159
* @param array<string, mixed> $jsonSchema
160160
*
161161
* @return array<string, mixed>
162-
*
163-
* @psalm-param array{type=: string|list<string>} $jsonSchema
164-
*
165-
* @psalm-return array{type=: string|list<string>, $ref=: string}
166162
*/
167163
private function addNullabilityToTypeDefinition(array $jsonSchema, Type $type) : array
168164
{

0 commit comments

Comments
 (0)