phpDocumentor may throw RuntimeException
Many places in the phpDocumenter may throw RuntimeException, naturally it's hard to tell what went wrong because so many places is coded with that.pull/756/head
parent
9dc1656592
commit
d5bbffb30d
|
@ -164,7 +164,7 @@ class DefinitionResolver
|
|||
// create() throws when it thinks the doc comment has invalid fields.
|
||||
// For example, a @see tag that is followed by something that doesn't look like a valid fqsen will throw.
|
||||
return $this->docBlockFactory->create($docCommentText, $context);
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
} catch (\RuntimeException | \InvalidArgumentException $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue