File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments