Skip to content

Commit 207d567

Browse files
committed
Handle phpDocumentor RuntimeException
felixfbecker#753
1 parent 9dc1656 commit 207d567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DefinitionResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private function getDocBlock(Node $node)
164164
// create() throws when it thinks the doc comment has invalid fields.
165165
// For example, a @see tag that is followed by something that doesn't look like a valid fqsen will throw.
166166
return $this->docBlockFactory->create($docCommentText, $context);
167-
} catch (\InvalidArgumentException $e) {
167+
} catch (\RuntimeException | \InvalidArgumentException $e) {
168168
return null;
169169
}
170170
}

0 commit comments

Comments
 (0)