File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 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
279279 $ this ->server = $ _SERVER ;
280280 // Adds the required server params. Note this is done separately from the request cycle since someone might call
281281 // `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 ()] ;
283283 }
284284
285285 /**
@@ -297,7 +297,13 @@ protected function onReconfigure(): void
297297 }
298298
299299 /**
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+ * }
301307 */
302308 private function getServerParams (): array
303309 {
You can’t perform that action at this time.
0 commit comments