Skip to content

Commit 1d0dfe6

Browse files
clxmstaabondrejmirtes
authored andcommitted
fix
1 parent 0ec04f8 commit 1d0dfe6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Analyser/MutatingScope.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,9 @@ private function resolveType(Expr $node): Type
11081108
$strings = [];
11091109
foreach ($constantStrings as $constantString) {
11101110
$strings[] = $constantString;
1111+
if ($constantString->getValue() === '') {
1112+
continue;
1113+
}
11111114
$strings[] = $constantString->append($rightStringType);
11121115
}
11131116
return TypeCombinator::union(...$strings);
@@ -1119,6 +1122,9 @@ private function resolveType(Expr $node): Type
11191122
$strings = [];
11201123
foreach ($constantStrings as $constantString) {
11211124
$strings[] = $constantString;
1125+
if ($constantString->getValue() === '') {
1126+
continue;
1127+
}
11221128
$strings[] = $leftStringType->append($constantString);
11231129
}
11241130
return TypeCombinator::union(...$strings);

0 commit comments

Comments
 (0)