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

Fix invalid assignment to Union

This commit is contained in:
Matthew Brown 2017-11-19 14:09:20 -05:00
parent 942bc0a663
commit 95429b7037

View File

@ -958,11 +958,9 @@ class FetchChecker
$replacement_type $replacement_type
); );
$type = new Type\Union([ $type = new TArray([
new TArray([ Type::getString(),
Type::getString(), $generic_params,
$generic_params,
]),
]); ]);
if (!$array_access_type) { if (!$array_access_type) {