Skip to content

Commit

Permalink
Cache trait nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Mar 12, 2020
1 parent 8f28f41 commit 321f1a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Psalm/Internal/Codebase/ClassLikes.php
Expand Up @@ -723,6 +723,8 @@ public function getTraitNode($fq_trait_name)
$trait_node = $trait_finder->getNode();

if ($trait_node) {
$this->trait_nodes[$fq_trait_name_lc] = $trait_node;

return $trait_node;
}

Expand Down

0 comments on commit 321f1a5

Please sign in to comment.