1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +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
);
$type = new Type\Union([
new TArray([
Type::getString(),
$generic_params,
]),
$type = new TArray([
Type::getString(),
$generic_params,
]);
if (!$array_access_type) {