Skip to content

Commit 2de1467

Browse files
phpstan-botclaude
andcommitted
Add PHPDoc to getMethodWithMostParameters()
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 91abb84 commit 2de1467

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Reflection/Type/IntersectionTypeMethodReflection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ public function getResolvedPhpDoc(): ?ResolvedPhpDocBlock
252252
return $this->getMethodWithMostParameters()->getResolvedPhpDoc();
253253
}
254254

255+
/** Selects the method whose variant has the widest parameter list, so intersection ordering does not affect call validation. */
255256
private function getMethodWithMostParameters(): ExtendedMethodReflection
256257
{
257258
if ($this->methodWithMostParameters !== null) {

0 commit comments

Comments
 (0)