Skip to content

Commit bfadbdd

Browse files
villfaondrejmirtes
authored andcommitted
Reduce the amount of calls to hasMethodSignature()
1 parent ddd520f commit bfadbdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Reflection/Php/PhpClassReflectionExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ private function createMethod(
454454
}
455455

456456
if ($this->signatureMapProvider->hasMethodSignature($declaringClassName, $methodReflection->getName())) {
457-
$variantNumbers = [];
458-
$i = 0;
457+
$variantNumbers = [0];
458+
$i = 1;
459459
while ($this->signatureMapProvider->hasMethodSignature($declaringClassName, $methodReflection->getName(), $i)) {
460460
$variantNumbers[] = $i;
461461
$i++;

0 commit comments

Comments
 (0)