We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d9f2b1 commit 47aa39dCopy full SHA for 47aa39d
src/PhpDoc/PhpDocBlock.php
@@ -210,14 +210,18 @@ public static function resolvePhpDocBlockForMethod(
210
continue;
211
}
212
213
+ if ($traitMethod->getDocComment() === null) {
214
+ continue;
215
+ }
216
+
217
$methodVariant = $traitMethod->getOnlyVariant();
218
$positionalMethodParameterNames = [];
219
foreach ($methodVariant->getParameters() as $methodParameter) {
220
$positionalMethodParameterNames[] = $methodParameter->getName();
221
222
223
$docBlocksFromParents[] = new self(
- $traitMethod->getDocComment() ?? ResolvedPhpDocBlock::EMPTY_DOC_STRING,
224
+ $traitMethod->getDocComment(),
225
$classReflection->getFileName(),
226
$classReflection,
227
$traitReflection->getName(),
0 commit comments