Skip to content

Commit f3ce1ca

Browse files
committed
chore: fixed SA errors due to phpstan update
1 parent 9e0ea24 commit f3ce1ca

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,12 +1698,6 @@ parameters:
16981698
count: 1
16991699
path: tests/cases/pageCacheHeaderAlreadySent/controllers/UserController.php
17001700

1701-
-
1702-
message: '#^Method app\\pageCacheHeaderAlreadySent\\controllers\\UserController\:\:behaviors\(\) return type has no value type specified in iterable type array\.$#'
1703-
identifier: missingType.iterableValue
1704-
count: 1
1705-
path: tests/cases/pageCacheHeaderAlreadySent/controllers/UserController.php
1706-
17071701
-
17081702
message: '#^Method PageCest\:\:testCache\(\) has no return type specified\.$#'
17091703
identifier: missingType.return

src/Codeception/Lib/Connector/Yii2.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,7 @@ public function startApp(?\yii\log\Logger $logger = null): void
305305
self::MAIL_IGNORE => null// Do nothing
306306
};
307307

308+
// @phpstan-ignore argument.templateType
308309
$app = Yii::createObject($config);
309310
if (! $app instanceof \yii\base\Application) {
310311
throw new ModuleConfigException($this, "Failed to initialize Yii2 app");

0 commit comments

Comments
 (0)