We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c44438b commit 8e6f0bfCopy full SHA for 8e6f0bf
src/Metadata/Resource/Factory/PhpDocResourceMetadataCollectionFactory.php
@@ -126,6 +126,10 @@ private function getDocBlock(string $class): ?PhpDocNode
126
return $this->docBlocks[$class];
127
}
128
129
+ if (!$this->phpDocParser || !$this->lexer) {
130
+ return null;
131
+ }
132
+
133
try {
134
$reflectionClass = new \ReflectionClass($class);
135
} catch (\ReflectionException) {
@@ -137,10 +141,6 @@ private function getDocBlock(string $class): ?PhpDocNode
137
141
return null;
138
142
139
143
140
- if (!$this->phpDocParser || !$this->lexer) {
- return null;
- }
-
144
$tokens = new TokenIterator($this->lexer->tokenize($rawDocNode));
145
$phpDocNode = $this->phpDocParser->parse($tokens);
146
$tokens->consumeTokenType(Lexer::TOKEN_END);
0 commit comments