Skip to content

Commit 6e3a12f

Browse files
phpstan-botclaude
authored andcommitted
Add PHPDoc to getMethodWithMostParameters()
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dee1a72 commit 6e3a12f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)