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