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

qa: add failing test for issue #8787

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
This commit is contained in:
Maximilian Bösing 2023-04-10 02:43:31 +02:00
parent 763116fab3
commit 10e7299501
No known key found for this signature in database
GPG Key ID: 9A8988C93CEC81A3

View File

@ -2024,6 +2024,29 @@ class ArrayAssignmentTest extends TestCase
'$b===' => 'list{0, 1, 2}',
],
],
'appendValuesToMap' => [
'code' => '<?php
/**
* @return array{foo:numeric-string}&array<non-empty-string,non-empty-string>
*/
function defaultQueryParams(): array
{
return [
"foo" => "123",
"bar" => "baz",
];
}
/**
* @return array<non-empty-string, non-empty-string>
*/
function getQueryParams(): array
{
$queryParams = defaultQueryParams();
$queryParams["a"] = "zzz";
return $queryParams;
}',
],
];
}