From d5bbffb30db1d117184518713a4bea191fc6ab22 Mon Sep 17 00:00:00 2001 From: Jari Pennanen Date: Mon, 23 Sep 2019 14:26:13 +0300 Subject: [PATCH] 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. --- src/DefinitionResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DefinitionResolver.php b/src/DefinitionResolver.php index adddf774..06e2a589 100644 --- a/src/DefinitionResolver.php +++ b/src/DefinitionResolver.php @@ -164,7 +164,7 @@ private function getDocBlock(Node $node) // 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; } }