mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Update empty list/array notation
This commit is contained in:
parent
ff50516fbd
commit
de49946e4d
@ -122,7 +122,7 @@ class ArgTest extends TestCase
|
||||
'assertions' => [
|
||||
'$a' => 'array{a: int, b: int}',
|
||||
'$b' => 'non-empty-list<int>',
|
||||
'$c' => 'list<empty>',
|
||||
'$c' => 'list<never>',
|
||||
],
|
||||
],
|
||||
'arrayModificationFunctions' => [
|
||||
|
@ -682,7 +682,7 @@ class ArrayFunctionCallTest extends TestCase
|
||||
',
|
||||
'assertions' => [
|
||||
'$manifest' => 'non-empty-array<string, int>',
|
||||
'$emptyManifest' => 'array<empty, empty>',
|
||||
'$emptyManifest' => 'array<never, never>',
|
||||
],
|
||||
],
|
||||
'uksort' => [
|
||||
@ -703,7 +703,7 @@ class ArrayFunctionCallTest extends TestCase
|
||||
);',
|
||||
'assertions' => [
|
||||
'$array' => 'non-empty-array<string, int>',
|
||||
'$emptyArray' => 'array<empty, empty>',
|
||||
'$emptyArray' => 'array<never, never>',
|
||||
],
|
||||
],
|
||||
'arrayMergeTKeyedArray' => [
|
||||
@ -1808,7 +1808,7 @@ class ArrayFunctionCallTest extends TestCase
|
||||
shuffle($emptyArray);',
|
||||
'assertions' => [
|
||||
'$array' => 'non-empty-list<int>',
|
||||
'$emptyArray' => 'list<empty>',
|
||||
'$emptyArray' => 'list<never>',
|
||||
],
|
||||
],
|
||||
'sort' => [
|
||||
@ -1819,7 +1819,7 @@ class ArrayFunctionCallTest extends TestCase
|
||||
sort($emptyArray);',
|
||||
'assertions' => [
|
||||
'$array' => 'non-empty-list<int>',
|
||||
'$emptyArray' => 'list<empty>',
|
||||
'$emptyArray' => 'list<never>',
|
||||
],
|
||||
],
|
||||
'rsort' => [
|
||||
@ -1830,7 +1830,7 @@ class ArrayFunctionCallTest extends TestCase
|
||||
rsort($emptyArray);',
|
||||
'assertions' => [
|
||||
'$array' => 'non-empty-list<int>',
|
||||
'$emptyArray' => 'list<empty>',
|
||||
'$emptyArray' => 'list<never>',
|
||||
],
|
||||
],
|
||||
'usort' => [
|
||||
@ -1842,7 +1842,7 @@ class ArrayFunctionCallTest extends TestCase
|
||||
usort($emptyArray, "baz");',
|
||||
'assertions' => [
|
||||
'$array' => 'non-empty-list<int>',
|
||||
'$emptyArray' => 'list<empty>',
|
||||
'$emptyArray' => 'list<never>',
|
||||
],
|
||||
],
|
||||
'closureParamConstraintsMet' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user