mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +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:
parent
763116fab3
commit
10e7299501
@ -2024,6 +2024,29 @@ class ArrayAssignmentTest extends TestCase
|
|||||||
'$b===' => 'list{0, 1, 2}',
|
'$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;
|
||||||
|
}',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user