1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Only set from docblock if not mixed

This commit is contained in:
Matthew Brown 2020-01-17 10:34:13 -05:00
parent a840743015
commit 1697115861

View File

@ -141,7 +141,10 @@ class TTemplateParam extends \Psalm\Type\Atomic
public function setFromDocblock()
{
$this->from_docblock = true;
$this->as->setFromDocblock();
if (!$this->as->isMixed()) {
$this->as->setFromDocblock();
}
}
/**