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:
parent
942bc0a663
commit
95429b7037
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user