Skip to content
Permalink
Browse files

Suppress issue where we don’t want to autoload

  • Loading branch information...
muglug committed May 26, 2019
1 parent 69150d5 commit fafe73de0a47b0e148c44abfdcb6f809860c2d6c
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Psalm/Internal/Visitor/ReflectorVisitor.php
@@ -419,6 +419,7 @@ public function enterNode(PhpParser\Node $node)
&& $node->cond->expr->args[0]->value instanceof PhpParser\Node\Scalar\String_
&& class_exists($node->cond->expr->args[0]->value->value, false)
) {
/** @psalm-suppress ArgumentTypeCoercion - special case where the class is internal */
$reflection_class = new \ReflectionClass($node->cond->expr->args[0]->value->value);
if ($reflection_class->getFileName() !== $this->file_path) {

0 comments on commit fafe73d

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