Skip to content

Commit b036666

Browse files
committed
Fix
1 parent 8ed7156 commit b036666

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Type/FileTypeMapper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ public function getResolvedPhpDoc(
8585
throw new \PHPStan\ShouldNotHappenException();
8686
}
8787

88+
if ($docComment === '') {
89+
return ResolvedPhpDocBlock::createEmpty();
90+
}
91+
8892
$nameScopeKey = $this->getNameScopeKey($fileName, $className, $traitName, $functionName);
8993
$phpDocKey = md5(sprintf('%s-%s', $nameScopeKey, $docComment));
9094
if (isset($this->resolvedPhpDocBlockCache[$phpDocKey])) {

0 commit comments

Comments
 (0)