@@ -210,14 +210,18 @@ public static function resolvePhpDocBlockForMethod(
|
210 | 210 | continue; |
211 | 211 | } |
212 | 212 | |
| 213 | +if ($traitMethod->getDocComment() === null) { |
| 214 | +continue; |
| 215 | + } |
| 216 | + |
213 | 217 | $methodVariant = $traitMethod->getOnlyVariant(); |
214 | 218 | $positionalMethodParameterNames = []; |
215 | 219 | foreach ($methodVariant->getParameters() as $methodParameter) { |
216 | 220 | $positionalMethodParameterNames[] = $methodParameter->getName(); |
217 | 221 | } |
218 | 222 | |
219 | 223 | $docBlocksFromParents[] = new self( |
220 | | -$traitMethod->getDocComment() ?? ResolvedPhpDocBlock::EMPTY_DOC_STRING, |
| 224 | +$traitMethod->getDocComment(), |
221 | 225 | $classReflection->getFileName(), |
222 | 226 | $classReflection, |
223 | 227 | $traitReflection->getName(), |
|