@@ -145,13 +145,13 @@ private function cacheReturnTypes(): void
145145 return ;
146146 }
147147
148- $ string = new StringType ();
148+ $ stringType = new StringType ();
149149 $ port = IntegerRangeType::fromInterval (0 , 65535 );
150- $ false = new ConstantBooleanType (false );
151- $ null = new NullType ();
150+ $ falseType = new ConstantBooleanType (false );
151+ $ nullType = new NullType ();
152152
153- $ stringOrFalseOrNull = TypeCombinator::union ($ string , $ false , $ null );
154- $ portOrFalseOrNull = TypeCombinator::union ($ port , $ false , $ null );
153+ $ stringOrFalseOrNull = TypeCombinator::union ($ stringType , $ falseType , $ nullType );
154+ $ portOrFalseOrNull = TypeCombinator::union ($ port , $ falseType , $ nullType );
155155
156156 $ this ->componentTypesPairedConstants = [
157157 PHP_URL_SCHEME => $ stringOrFalseOrNull ,
@@ -165,14 +165,14 @@ private function cacheReturnTypes(): void
165165 ];
166166
167167 $ this ->componentTypesPairedStrings = [
168- 'scheme ' => $ string ,
169- 'host ' => $ string ,
168+ 'scheme ' => $ stringType ,
169+ 'host ' => $ stringType ,
170170 'port ' => $ port ,
171- 'user ' => $ string ,
172- 'pass ' => $ string ,
173- 'path ' => $ string ,
174- 'query ' => $ string ,
175- 'fragment ' => $ string ,
171+ 'user ' => $ stringType ,
172+ 'pass ' => $ stringType ,
173+ 'path ' => $ stringType ,
174+ 'query ' => $ stringType ,
175+ 'fragment ' => $ stringType ,
176176 ];
177177 }
178178}
0 commit comments