1
0
Fork 0

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
Jari Pennanen 2019-09-23 14:26:13 +03:00 committed by GitHub
parent 9dc1656592
commit d5bbffb30d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}