Skip to content

Commit 22f5850

Browse files
Rename
1 parent 23a3a4a commit 22f5850

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
@@ -506,7 +506,7 @@ public function resolveConcatType(Type $left, Type $right): Type
506506

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

511511
$allRightConstantsZeroOrMore = false;
512512
foreach ($rightConstantStrings as $rightConstantString) {
@@ -516,7 +516,7 @@ public function resolveConcatType(Type $left, Type $right): Type
516516

517517
if (
518518
!is_numeric($rightConstantString->getValue())
519-
|| Strings::match($rightConstantString->getValue(), $allowedPattern) === null
519+
|| Strings::match($rightConstantString->getValue(), $allowedRightPattern) === null
520520
) {
521521
$allRightConstantsZeroOrMore = false;
522522
break;

0 commit comments

Comments
 (0)