Add comment on try/catch in DefinitionResolver
parent
e0a7b2108e
commit
65363b7390
|
@ -151,6 +151,8 @@ class DefinitionResolver
|
||||||
$context = new Types\Context($namespaceName, $namespaceImportTable);
|
$context = new Types\Context($namespaceName, $namespaceImportTable);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// 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);
|
return $this->docBlockFactory->create($docCommentText, $context);
|
||||||
} catch (\InvalidArgumentException $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue