Skip to content

Commit 98d570d

Browse files
committed
Fix PR comments
1 parent 7871059 commit 98d570d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Codeception/Module/Yii2.php

+8-2
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)