Skip to content
Permalink
Browse files

No exception when file has issues

  • Loading branch information
muglug committed Nov 14, 2019
1 parent 738ce4f commit 09aafa40c0b7d860c21348aa54a97e70c2d8869f
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Psalm/Internal/Visitor/ReflectorVisitor.php
@@ -665,6 +665,10 @@ public function leaveNode(PhpParser\Node $node)
}
if (!$this->functionlike_storages) {
if ($this->file_storage->has_visitor_issues) {
return;
}
throw new \UnexpectedValueException(
'There should be function storages for line ' . $this->file_path . ':' . $node->getLine()
);

0 comments on commit 09aafa4

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