mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix #3386 - non-empty-array = non-empty-array<array-key, mixed>
This commit is contained in:
parent
fd15bfc65d
commit
3ecef8bee7
@ -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])]);
|
||||
|
Loading…
Reference in New Issue
Block a user