File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ public function _initialize(): void
279
279
$ this ->server = $ _SERVER ;
280
280
// Adds the required server params. Note this is done separately from the request cycle since someone might call
281
281
// `Url::to` before doing a request, which would instantiate the request component with incorrect server params.
282
- $ _SERVER = array_merge ( $ _SERVER , $ this ->getServerParams ()) ;
282
+ $ _SERVER = [... $ _SERVER , $ this ->getServerParams ()] ;
283
283
}
284
284
285
285
/**
@@ -297,7 +297,13 @@ protected function onReconfigure(): void
297
297
}
298
298
299
299
/**
300
- * @return array<string, mixed>
300
+ * @return array{
301
+ * SCRIPT_FILENAME: string,
302
+ * SCRIPT_NAME: string,
303
+ * SERVER_NAME: string,
304
+ * SERVER_PORT: string,
305
+ * HTTPS: bool
306
+ * }
301
307
*/
302
308
private function getServerParams (): array
303
309
{
You can’t perform that action at this time.
0 commit comments