Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Wording
  • Loading branch information
VincentLanglet committed Apr 7, 2026
commit 4c6e74ac7da2682bb9a8cf7b7318febf89f77580
6 changes: 5 additions & 1 deletion src/Reflection/Type/IntersectionTypeMethodReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ public function getResolvedPhpDoc(): ?ResolvedPhpDocBlock
return $this->getMethodWithMostParameters()->getResolvedPhpDoc();
}

/** Selects the method whose variant has the widest parameter list, so intersection ordering does not affect call validation. */
/**
* Since every intersected method should be compatible,
* selects the method whose variant has the widest parameter list,
* so intersection ordering does not affect call validation.
*/
private function getMethodWithMostParameters(): ExtendedMethodReflection
{
if ($this->methodWithMostParameters !== null) {
Expand Down