@@ -145,13 +145,13 @@ private function cacheReturnTypes(): void
145
145
return ;
146
146
}
147
147
148
- $ string = new StringType ();
148
+ $ stringType = new StringType ();
149
149
$ port = IntegerRangeType::fromInterval (0 , 65535 );
150
- $ false = new ConstantBooleanType (false );
151
- $ null = new NullType ();
150
+ $ falseType = new ConstantBooleanType (false );
151
+ $ nullType = new NullType ();
152
152
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 );
155
155
156
156
$ this ->componentTypesPairedConstants = [
157
157
PHP_URL_SCHEME => $ stringOrFalseOrNull ,
@@ -165,14 +165,14 @@ private function cacheReturnTypes(): void
165
165
];
166
166
167
167
$ this ->componentTypesPairedStrings = [
168
- 'scheme ' => $ string ,
169
- 'host ' => $ string ,
168
+ 'scheme ' => $ stringType ,
169
+ 'host ' => $ stringType ,
170
170
'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 ,
176
176
];
177
177
}
178
178
}
0 commit comments