1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix #3386 - non-empty-array = non-empty-array<array-key, mixed>

This commit is contained in:
Matthew Brown 2020-05-17 22:49:20 -04:00
parent fd15bfc65d
commit 3ecef8bee7

View File

@ -169,7 +169,7 @@ abstract class Atomic implements TypeNode
return new TArray([new Union([new TArrayKey]), new Union([new TMixed])]);
case 'non-empty-array':
return new TNonEmptyArray([new Union([new TMixed]), new Union([new TMixed])]);
return new TNonEmptyArray([new Union([new TArrayKey]), new Union([new TMixed])]);
case 'callable-array':
return new Type\Atomic\TCallableArray([new Union([new TArrayKey]), new Union([new TMixed])]);