Skip to content

Commit 4c6e74a

Browse files
Wording
1 parent 6e3a12f commit 4c6e74a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Reflection/Type/IntersectionTypeMethodReflection.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,11 @@ 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. */
255+
/**
256+
* Since every intersected method should be compatible,
257+
* selects the method whose variant has the widest parameter list,
258+
* so intersection ordering does not affect call validation.
259+
*/
256260
private function getMethodWithMostParameters(): ExtendedMethodReflection
257261
{
258262
if ($this->methodWithMostParameters !== null) {

0 commit comments

Comments
 (0)