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:
parent
a840743015
commit
1697115861
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user