1
0
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:
Bruce Weirdan 2022-05-28 16:19:49 -04:00
parent ff50516fbd
commit de49946e4d
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D
2 changed files with 7 additions and 7 deletions

View File

@ -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' => [

View File

@ -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' => [