mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Add tests
This commit is contained in:
parent
3150ad2b27
commit
7f15d47c19
@ -2063,6 +2063,22 @@ class ArrayFunctionCallTest extends TestCase
|
||||
'ignored_issues' => [],
|
||||
'php_version' => '7.4',
|
||||
],
|
||||
'arrayMapMoreZip' => [
|
||||
'code' => '<?php
|
||||
$a = array_map(null, []);
|
||||
$b = array_map(null, [1]);
|
||||
$c = array_map(null, ["test" => 1]);
|
||||
$d = array_map(null, [], []);
|
||||
',
|
||||
'assertions' => [
|
||||
'$a===' => 'array<never, never>',
|
||||
'$b===' => 'list{1}',
|
||||
'$c===' => 'array{test: 1}',
|
||||
'$d===' => 'array<never, never>',
|
||||
],
|
||||
'ignored_issues' => [],
|
||||
'php_version' => '7.4',
|
||||
],
|
||||
'arrayMapExplicitZip' => [
|
||||
'code' => '<?php
|
||||
$as = ["key"];
|
||||
|
Loading…
Reference in New Issue
Block a user