Skip to content

Commit c44438b

Browse files
fix: check property
1 parent 7bf189f commit c44438b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Metadata/Resource/Factory/PhpDocResourceMetadataCollectionFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,11 @@ private function getDocBlock(string $class): ?PhpDocNode
133133
}
134134

135135
$rawDocNode = $reflectionClass->getDocComment();
136-
137136
if (!$rawDocNode) {
138137
return null;
139138
}
140139

141-
if (!class_exists(TokenIterator::class)) {
140+
if (!$this->phpDocParser || !$this->lexer) {
142141
return null;
143142
}
144143

0 commit comments

Comments
 (0)