Skip to content

Commit 956c3bb

Browse files
authored
Merge pull request #130 from Codeception/fix-server-params
fix: server params refactor broke format
2 parents a80a88a + 7779f7e commit 956c3bb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

phpstan.neon

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ parameters:
1717
checkMaybeUndefinedVariables: true
1818
treatPhpDocTypesAsCertain: false
1919
ignoreErrors:
20+
- identifier: missingType.iterableValue
21+
path: tests/_support/_generated/FunctionalTesterActions.php
2022
- identifier: return.type
2123
path: tests/_support/_generated/FunctionalTesterActions.php
2224
message: "# but returns mixed.$#"

src/Codeception/Module/Yii2.php

+1-1
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 = [...$_SERVER, $this->getServerParams()];
282+
$_SERVER = [...$_SERVER, ...$this->getServerParams()];
283283
}
284284

285285
/**

0 commit comments

Comments
 (0)