Skip to content

Commit c90386c

Browse files
VincentLangletondrejmirtes
authored andcommitted
Rename
1 parent 5d73861 commit c90386c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Reflection/InitializerExprTypeResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ public function resolveConcatType(Type $left, Type $right): Type
588588

589589
$leftNumericStringNonEmpty = TypeCombinator::remove($leftStringType, new ConstantStringType(''));
590590
if ($leftNumericStringNonEmpty->isNumericString()->yes()) {
591-
$allowedPattern = $left->isInteger()->yes() ? '#^[0-9.]+$#' : '#^[0-9]+$#';
591+
$allowedRightPattern = $left->isInteger()->yes() ? '#^[0-9.]+$#' : '#^[0-9]+$#';
592592

593593
$allRightConstantsZeroOrMore = false;
594594
foreach ($rightConstantStrings as $rightConstantString) {
@@ -598,7 +598,7 @@ public function resolveConcatType(Type $left, Type $right): Type
598598

599599
if (
600600
!is_numeric($rightConstantString->getValue())
601-
|| Strings::match($rightConstantString->getValue(), $allowedPattern) === null
601+
|| Strings::match($rightConstantString->getValue(), $allowedRightPattern) === null
602602
) {
603603
$allRightConstantsZeroOrMore = false;
604604
break;

0 commit comments

Comments
 (0)