Skip to content
Permalink
Browse files

Add note to future self

  • Loading branch information
muglug committed Nov 26, 2019
1 parent 9d32273 commit 2f02da62c110295ca445c44946012e0a9f4ac108
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Psalm/Internal/Visitor/ReflectorVisitor.php
@@ -1083,6 +1083,9 @@ private function registerClassLike(PhpParser\Node\Stmt\ClassLike $node)
$storage->is_trait = true;
$this->file_storage->has_trait = true;
$this->codebase->classlikes->addFullyQualifiedTraitName($fq_classlike_name, $this->file_path);
// adding this trait information (and scanning the traits in to begin with)
// increases the memory usage, but makes Psalm faster.
$this->codebase->classlikes->addTraitNode(
$fq_classlike_name,
$node,

0 comments on commit 2f02da6

Please sign in to comment.
You can’t perform that action at this time.