diff --git a/phpstan.neon b/phpstan.neon index fb2d525..e695b2d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -17,6 +17,8 @@ parameters: checkMaybeUndefinedVariables: true treatPhpDocTypesAsCertain: false ignoreErrors: + - identifier: missingType.iterableValue + path: tests/_support/_generated/FunctionalTesterActions.php - identifier: return.type path: tests/_support/_generated/FunctionalTesterActions.php message: "# but returns mixed.$#" diff --git a/src/Codeception/Module/Yii2.php b/src/Codeception/Module/Yii2.php index 54c289d..30f3372 100644 --- a/src/Codeception/Module/Yii2.php +++ b/src/Codeception/Module/Yii2.php @@ -279,7 +279,7 @@ public function _initialize(): void $this->server = $_SERVER; // Adds the required server params. Note this is done separately from the request cycle since someone might call // `Url::to` before doing a request, which would instantiate the request component with incorrect server params. - $_SERVER = [...$_SERVER, $this->getServerParams()]; + $_SERVER = [...$_SERVER, ...$this->getServerParams()]; } /**