Skip to content

Commit

Permalink
Fix #2625 - set template as type from docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jan 17, 2020
1 parent b582c49 commit a840743
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Psalm/Type/Atomic/TTemplateParam.php
Expand Up @@ -135,6 +135,15 @@ public function canBeFullyExpressedInPhp()
return false;
}

/**
* @return void
*/
public function setFromDocblock()
{
$this->from_docblock = true;
$this->as->setFromDocblock();
}

/**
* @param array<string, array<string, array{Type\Union, 1?:int}>> $template_types
*
Expand Down

0 comments on commit a840743

Please sign in to comment.