mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Remove unnecessary null check
This commit is contained in:
parent
cfe2e81629
commit
62e2bb3908
@ -645,10 +645,6 @@ class TemplateStandinTypeReplacer
|
||||
}
|
||||
}
|
||||
|
||||
if ($was_nullable && $generic_param->isNullable() && !$generic_param->isNull()) {
|
||||
$generic_param->removeType('null');
|
||||
}
|
||||
|
||||
if ($add_upper_bound) {
|
||||
return array_values($generic_param->getAtomicTypes());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user