1
0
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:
Matt Brown 2020-12-09 18:30:36 -05:00 committed by Daniil Gentili
parent cfe2e81629
commit 62e2bb3908
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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());
}