From 971b39eec9bcd13ae053afbc98e097bf8fe7135e Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 3 Nov 2026 12:43:18 +0300 Subject: [PATCH 1/9] Install module logger before building the application in startApp() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While createObject() builds the application, the build itself already calls Yii::getLogger() (log dispatcher construction, debug bootstrap). If no logger is installed yet, a plain yii\log\Logger is created, and its init() registers a shutdown function that PHP retains for the whole process — along with the logger, its dispatcher, log targets and the application built by each test. Memory therefore grows with every test, and large suites OOM (issue #78). Install the module logger (which overrides init() to skip that registration) before the application is built, so no plain yii\log\Logger is created during bootstrap. Behavior after the build is unchanged: the same logger instance is installed in both orderings. Add a regression suite (tests/cases/leak) whose test double application records the class of the logger present while its constructor runs and asserts it is the module logger; it fails against the previous ordering. --- src/Codeception/Lib/Connector/Yii2.php | 18 +++++++---- tests/cases/leak/app/App.php | 33 ++++++++++++++++++++ tests/cases/leak/codeception.yml | 13 ++++++++ tests/cases/leak/config.php | 11 +++++++ tests/cases/leak/functional.suite.yml | 8 +++++ tests/cases/leak/functional/LeakCest.php | 38 ++++++++++++++++++++++++ 6 files changed, 115 insertions(+), 6 deletions(-) create mode 100644 tests/cases/leak/app/App.php create mode 100644 tests/cases/leak/codeception.yml create mode 100644 tests/cases/leak/config.php create mode 100644 tests/cases/leak/functional.suite.yml create mode 100644 tests/cases/leak/functional/LeakCest.php diff --git a/src/Codeception/Lib/Connector/Yii2.php b/src/Codeception/Lib/Connector/Yii2.php index 379bfc1..f21dbfe 100644 --- a/src/Codeception/Lib/Connector/Yii2.php +++ b/src/Codeception/Lib/Connector/Yii2.php @@ -305,18 +305,24 @@ public function startApp(?\yii\log\Logger $logger = null): void self::MAIL_IGNORE => null// Do nothing }; + // Install the logger before the application is built: while `createObject()` + // runs, the application already calls `Yii::getLogger()` (its log dispatcher and + // debug bootstrap). If no logger is installed yet, a plain `yii\log\Logger` is + // created, and its `init()` registers a shutdown function that keeps it alive — + // along with its dispatcher, log targets and the application — after every test. + // The module logger overrides `init()` to avoid that, so it must be in place first. + if ($logger instanceof \yii\log\Logger) { + Yii::setLogger($logger); + } else { + Yii::setLogger(new Logger()); + } + // @phpstan-ignore argument.templateType $app = Yii::createObject($config); if (! $app instanceof \yii\base\Application) { throw new ModuleConfigException($this, "Failed to initialize Yii2 app"); } \Yii::$app = $app; - - if ($logger instanceof \yii\log\Logger) { - Yii::setLogger($logger); - } else { - Yii::setLogger(new Logger()); - } } /** diff --git a/tests/cases/leak/app/App.php b/tests/cases/leak/app/App.php new file mode 100644 index 0000000..ad47ae9 --- /dev/null +++ b/tests/cases/leak/app/App.php @@ -0,0 +1,33 @@ +loggerAtCtorStart = $this->loggerClass(); + parent::__construct($config); + } + + private function loggerClass(): ?string + { + static $property = null; + $property ??= new ReflectionProperty(\yii\BaseYii::class, '_logger'); + $logger = $property->getValue(); + return $logger === null ? null : $logger::class; + } +} diff --git a/tests/cases/leak/codeception.yml b/tests/cases/leak/codeception.yml new file mode 100644 index 0000000..03b3466 --- /dev/null +++ b/tests/cases/leak/codeception.yml @@ -0,0 +1,13 @@ +paths: + tests: . + output: ../../_output + data: _data + support: ../../_support +namespace: tests\ +extensions: + enabled: + - Codeception\Extension\RunFailed +modules: + config: + Yii2: + configFile: config.php diff --git a/tests/cases/leak/config.php b/tests/cases/leak/config.php new file mode 100644 index 0000000..c457bf4 --- /dev/null +++ b/tests/cases/leak/config.php @@ -0,0 +1,11 @@ + app\leak\App::class, + 'id' => 'leak', + 'basePath' => __DIR__, +]; diff --git a/tests/cases/leak/functional.suite.yml b/tests/cases/leak/functional.suite.yml new file mode 100644 index 0000000..318fbeb --- /dev/null +++ b/tests/cases/leak/functional.suite.yml @@ -0,0 +1,8 @@ +# Codeception Test Suite Configuration +# +# Suite for functional tests +actor: FunctionalTester +modules: + enabled: + - Yii2 + - Asserts diff --git a/tests/cases/leak/functional/LeakCest.php b/tests/cases/leak/functional/LeakCest.php new file mode 100644 index 0000000..1705dc0 --- /dev/null +++ b/tests/cases/leak/functional/LeakCest.php @@ -0,0 +1,38 @@ +assertInstanceOf(Logger::class, \Yii::getLogger()); + + $app = \Yii::$app; + $loggerAtCtorStart = $app instanceof App ? $app->loggerAtCtorStart : null; + + // The logger present while the application was constructed must already be the + // module logger — otherwise a plain `yii\log\Logger` was created mid-build. + $I->assertSame(Logger::class, $loggerAtCtorStart); + } +} From 5a3644df7365a1692d4d1567e12040c3e45a41d1 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 3 Nov 2026 13:43:03 +0300 Subject: [PATCH 2/9] Restore module logger after application bootstrap An application bootstrap may replace the global logger while the application is being built. The module still reports failure diagnostics from the logger it installed, so put that logger back after createObject() in addition to the pre-build installation. Add a regression covering the public _before/_failed/_after lifecycle with a bootstrap that installs a custom global logger. --- src/Codeception/Lib/Connector/Yii2.php | 18 ++++-- tests/cases/bootstrap-logger/app/App.php | 11 ++++ .../bootstrap-logger/app/CustomLogger.php | 20 ++++++ tests/cases/bootstrap-logger/codeception.yml | 12 ++++ tests/cases/bootstrap-logger/config.php | 23 +++++++ .../bootstrap-logger/functional.suite.yml | 7 +++ .../functional/BootstrapLoggerCest.php | 62 +++++++++++++++++++ 7 files changed, 147 insertions(+), 6 deletions(-) create mode 100644 tests/cases/bootstrap-logger/app/App.php create mode 100644 tests/cases/bootstrap-logger/app/CustomLogger.php create mode 100644 tests/cases/bootstrap-logger/codeception.yml create mode 100644 tests/cases/bootstrap-logger/config.php create mode 100644 tests/cases/bootstrap-logger/functional.suite.yml create mode 100644 tests/cases/bootstrap-logger/functional/BootstrapLoggerCest.php diff --git a/src/Codeception/Lib/Connector/Yii2.php b/src/Codeception/Lib/Connector/Yii2.php index f21dbfe..16b1991 100644 --- a/src/Codeception/Lib/Connector/Yii2.php +++ b/src/Codeception/Lib/Connector/Yii2.php @@ -305,17 +305,16 @@ public function startApp(?\yii\log\Logger $logger = null): void self::MAIL_IGNORE => null// Do nothing }; - // Install the logger before the application is built: while `createObject()` + // Install the module logger before the application is built: while `createObject()` // runs, the application already calls `Yii::getLogger()` (its log dispatcher and // debug bootstrap). If no logger is installed yet, a plain `yii\log\Logger` is // created, and its `init()` registers a shutdown function that keeps it alive — // along with its dispatcher, log targets and the application — after every test. // The module logger overrides `init()` to avoid that, so it must be in place first. - if ($logger instanceof \yii\log\Logger) { - Yii::setLogger($logger); - } else { - Yii::setLogger(new Logger()); - } + $moduleLogger = $logger instanceof \yii\log\Logger + ? $logger + : new Logger(); + Yii::setLogger($moduleLogger); // @phpstan-ignore argument.templateType $app = Yii::createObject($config); @@ -323,6 +322,13 @@ public function startApp(?\yii\log\Logger $logger = null): void throw new ModuleConfigException($this, "Failed to initialize Yii2 app"); } \Yii::$app = $app; + + // The application's bootstrap may replace the global logger while it is being + // built (a `bootstrap` callback calling `Yii::setLogger()`, or a `logger` config + // entry). Restore the module logger afterwards so that messages emitted during the + // test reach it and `Module\Yii2::_failed()` can report them; otherwise such a + // bootstrap replacement would swallow the module's failure diagnostics. + Yii::setLogger($moduleLogger); } /** diff --git a/tests/cases/bootstrap-logger/app/App.php b/tests/cases/bootstrap-logger/app/App.php new file mode 100644 index 0000000..c5dfc37 --- /dev/null +++ b/tests/cases/bootstrap-logger/app/App.php @@ -0,0 +1,11 @@ + app\bootstrapLogger\App::class, + 'id' => 'bootstrap-logger', + 'basePath' => __DIR__, + 'bootstrap' => [ + static function (): void { + \Yii::setLogger(new \app\bootstrapLogger\CustomLogger()); + }, + ], + 'components' => [ + 'request' => [ + 'cookieValidationKey' => 'bootstrap-logger', + 'enableCsrfValidation' => false, + ], + ], +]; diff --git a/tests/cases/bootstrap-logger/functional.suite.yml b/tests/cases/bootstrap-logger/functional.suite.yml new file mode 100644 index 0000000..50b37a5 --- /dev/null +++ b/tests/cases/bootstrap-logger/functional.suite.yml @@ -0,0 +1,7 @@ +actor: FunctionalTester +modules: + enabled: + - Yii2 + - Asserts +steps: + - Codeception\Step\ConditionalAssertion diff --git a/tests/cases/bootstrap-logger/functional/BootstrapLoggerCest.php b/tests/cases/bootstrap-logger/functional/BootstrapLoggerCest.php new file mode 100644 index 0000000..f0eff1f --- /dev/null +++ b/tests/cases/bootstrap-logger/functional/BootstrapLoggerCest.php @@ -0,0 +1,62 @@ + __DIR__ . '/../config.php', + 'cleanup' => false, + 'transaction' => false, + ]); + + $test = new Unit('testBootstrapLogger505'); + + $module->_initialize(); + $module->_before($test); + + // The global logger must be the module logger both while the application + // is being built and once it is done — i.e. the bootstrap did not leave its + // custom global logger in place. + $I->assertInstanceOf(Logger::class, \Yii::getLogger()); + + \Yii::warning('bootstrap-logger-505', 'bootstrap-logger'); + $module->_failed($test, new \RuntimeException('intentional test failure')); + + $report = $test->getMetadata()->getReports()['yii-log'] ?? ''; + $I->assertStringContainsString('bootstrap-logger-505', $report); + + $module->_after($test); + } +} From bfb1f630376521a3a02484544e0e150774ce4057 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sun, 8 Nov 2026 10:31:36 +0300 Subject: [PATCH 3/9] Defer yii\log shutdown registrations and run them on application reset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A plain yii\log\Logger built while the application is bootstrapped (e.g. one an application's own bootstrap callback installs) registers shutdown functions in init(). PHP keeps those closures until process exit, retaining the logger and with it its dispatcher, log targets, pending messages and the whole application — so each test leaves them behind and large suites exhaust memory (issue #78, the residual case the module-logger install does not cover). Install a namespace-level yii\log\register_shutdown_function once per process (Yii does not import the function, so unqualified calls in Logger::init() resolve there). While an application is being started — and until it is reset — store those registrations with their arguments instead of registering them. resetApplication() runs the stored registrations before tearing the application down, invoking them until the queue is empty (the stored outer closure re-registers the nested 'flush(true)' one, and the final flag must survive the round-trip to export the log targets). This removes the per-test logger retention without changing what the module logger reports: the module logger is still installed before the build and restored after it, and its init() never registers shutdown functions. Messages logged through an application-bootstrapped logger during a test are still delivered to its targets, now by the deferred drain instead of at process exit. --- src/Codeception/Lib/Connector/Yii2.php | 102 +++++++++++++++++++++++++ 1 file changed, 102 insertions(+) diff --git a/src/Codeception/Lib/Connector/Yii2.php b/src/Codeception/Lib/Connector/Yii2.php index 16b1991..3bac712 100644 --- a/src/Codeception/Lib/Connector/Yii2.php +++ b/src/Codeception/Lib/Connector/Yii2.php @@ -135,6 +135,73 @@ final class Yii2 extends Client */ private array $emails = []; + /** + * Whether an application is currently being started or already started and not yet reset. + * While this is true, `yii\log` shutdown registrations are stored (see + * `registerShutdown()`) instead of being registered for real: a real shutdown closure + * bound to a logger keeps the logger — and with it its dispatcher, log targets and the + * application they hold — alive until process exit, even though the application is + * discarded after every test. + * + * @internal + */ + private static bool $appStarting = false; + + /** + * Shutdown registrations captured in the `yii\log` namespace while an application is + * being started. `yii\log\Logger::init()` registers two of them per logger (a closure + * bound to the logger and `[$this, 'flush']` with `true`); they are run by + * `resetApplication()` instead of surviving to process exit. + * + * @internal + * + * @var list}> + */ + private static array $deferredShutdowns = []; + + /** + * @internal + * + * @return bool whether an application is currently being started or not yet reset + */ + public static function appStarting(): bool + { + return self::$appStarting; + } + + /** + * Stores a shutdown registration (with its arguments) instead of registering it, + * to be run later by `resetApplication()`. + * + * The arguments are kept because `yii\log\Logger::init()` registers + * `[$this, 'flush']` with `true` — the final-flush flag that gates target export — + * and it must survive the store/invoke round-trip. + * + * @internal + */ + public static function registerShutdown(callable $callable, mixed ...$args): void + { + self::$deferredShutdowns[] = [$callable, $args]; + } + + /** + * Runs the stored shutdown registrations. + * + * The loop continues until the queue is empty because invoking the stored outer closure + * re-registers the nested `[$this, 'flush']` one, which must in turn be invoked; the cap + * is a safety guard against pathological re-registration. + * + * @internal + */ + private static function runDeferredShutdowns(): void + { + $cap = 100; + while (self::$deferredShutdowns !== [] && $cap-- > 0) { + [$callable, $args] = array_shift(self::$deferredShutdowns); + \call_user_func($callable, ...$args); + } + } + /** * @internal */ @@ -158,6 +225,16 @@ private function getWebRequest(): YiiRequest public function resetApplication(bool $closeSession = true): void { codecept_debug('Destroying application'); + + // Run the shutdown registrations stored during the previous `startApp()` before the + // application is torn down: invoking them here (instead of letting them run at + // process exit) is what stops the loggers — and the dispatchers, targets and + // application they hold — from being retained for the whole test process. This is + // idempotent: when called before the next application is started, the queue is + // already empty. + self::runDeferredShutdowns(); + self::$appStarting = false; + if ($closeSession) { $this->closeSession(); } @@ -305,6 +382,31 @@ public function startApp(?\yii\log\Logger $logger = null): void self::MAIL_IGNORE => null// Do nothing }; + // Intercept shutdown registrations made in the `yii\log` namespace for the rest of + // this process. Yii does not import `register_shutdown_function`, so an unqualified + // call in `yii\log\Logger::init()` resolves to a namespace-level function when one + // is defined there; while `$appStarting` is on, those calls are stored instead of + // being registered. Without this, every plain logger built during the application + // bootstrap (e.g. one the application itself sets via a `bootstrap` callback) keeps + // itself alive — with its dispatcher, log targets and the application — until + // process exit, because PHP's shutdown closures outlive the discarded application. + if (! function_exists('\yii\log\register_shutdown_function')) { + eval(<<<'PHP' + namespace yii\log { + function register_shutdown_function(callable $callable, mixed ...$args) { + if (\Codeception\Lib\Connector\Yii2::appStarting()) { + \Codeception\Lib\Connector\Yii2::registerShutdown($callable, ...$args); + return null; + } + return \register_shutdown_function($callable, ...$args); + } + } + PHP); + } + // Keep it on through the whole test so loggers created after the build are + // captured too; `resetApplication()` runs the stored registrations and turns it off. + self::$appStarting = true; + // Install the module logger before the application is built: while `createObject()` // runs, the application already calls `Yii::getLogger()` (its log dispatcher and // debug bootstrap). If no logger is installed yet, a plain `yii\log\Logger` is From c3d61e70d46f1248ebb0ad501a46c753fc57cf7a Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sun, 8 Nov 2026 11:25:53 +0300 Subject: [PATCH 4/9] Store deferred shutdown args as a list PHPStan types the splatted variadic args of registerShutdown() as array, which did not match the declared list of the deferred-shutdowns property. A variadic array is always int-keyed at runtime, so array_values() only normalizes the stored shape to the declaration. No behavior change. --- src/Codeception/Lib/Connector/Yii2.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Codeception/Lib/Connector/Yii2.php b/src/Codeception/Lib/Connector/Yii2.php index 3bac712..8fa1400 100644 --- a/src/Codeception/Lib/Connector/Yii2.php +++ b/src/Codeception/Lib/Connector/Yii2.php @@ -181,7 +181,9 @@ public static function appStarting(): bool */ public static function registerShutdown(callable $callable, mixed ...$args): void { - self::$deferredShutdowns[] = [$callable, $args]; + // `array_values()` normalizes the splatted args to a `list`: a variadic array is always + // int-keyed at runtime, so this only makes the stored shape match the property. + self::$deferredShutdowns[] = [$callable, array_values($args)]; } /** From 9facd8c89d68f11c5fea4503882a5a841c30f96f Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Sun, 8 Nov 2026 11:48:55 +0300 Subject: [PATCH 5/9] Address review findings on deferred shutdown handling - Drain cap: size it four times the queue's own size instead of a fixed 100. The queue drains FIFO and a plain logger contributes exactly two invocations per drain, so any finite logger queue drains fully; the cap exists only to bound pathological re-registration, and leftover entries stay in the queue until the next drain rather than in PHP's real shutdown registry. - resetApplication(): close the session before draining and clearing the app-starting flag. When Yii::$app was already null, closeSession() starts an application to close it; previously that happened after the flag was cleared, leaving its logger registrations pending with interception still enabled. - startApp(): install the interceptor and turn the flag on before the config file is included, so a plain logger constructed in the config (or a file it requires) is captured from the start. PHP resolves the unqualified call at runtime, so this also intercepts call sites compiled before the hook. --- src/Codeception/Lib/Connector/Yii2.php | 69 ++++++++++++++++---------- 1 file changed, 42 insertions(+), 27 deletions(-) diff --git a/src/Codeception/Lib/Connector/Yii2.php b/src/Codeception/Lib/Connector/Yii2.php index 8fa1400..84246eb 100644 --- a/src/Codeception/Lib/Connector/Yii2.php +++ b/src/Codeception/Lib/Connector/Yii2.php @@ -189,15 +189,19 @@ public static function registerShutdown(callable $callable, mixed ...$args): voi /** * Runs the stored shutdown registrations. * - * The loop continues until the queue is empty because invoking the stored outer closure - * re-registers the nested `[$this, 'flush']` one, which must in turn be invoked; the cap - * is a safety guard against pathological re-registration. + * The queue is drained FIFO. `yii\log\Logger::init()` — the only production producer — + * contributes exactly two invocations per logger (the stored outer closure first, then + * the nested final `flush(true)` it re-registers when invoked), so a cap of four times + * the queue's own size fully covers every finite logger queue. It is there to bound + * pathological re-registration in the `yii\log` namespace: when a callable stores more + * entries than the headroom allows, the drain stops and the leftover entries stay in + * the queue until the next drain — never in PHP's real shutdown registry. * * @internal */ private static function runDeferredShutdowns(): void { - $cap = 100; + $cap = 4 * count(self::$deferredShutdowns); while (self::$deferredShutdowns !== [] && $cap-- > 0) { [$callable, $args] = array_shift(self::$deferredShutdowns); \call_user_func($callable, ...$args); @@ -228,6 +232,15 @@ public function resetApplication(bool $closeSession = true): void { codecept_debug('Destroying application'); + // Close the session while the application is still reachable. If `Yii::$app` was + // already gone, `closeSession()` starts an application to close it; doing that + // before the drain keeps `$appStarting` on for that build, so its logger + // registrations are captured and drained below, and the flag is cleared right + // after — instead of being left pending with interception still enabled. + if ($closeSession) { + $this->closeSession(); + } + // Run the shutdown registrations stored during the previous `startApp()` before the // application is torn down: invoking them here (instead of letting them run at // process exit) is what stops the loggers — and the dispatchers, targets and @@ -237,9 +250,6 @@ public function resetApplication(bool $closeSession = true): void self::runDeferredShutdowns(); self::$appStarting = false; - if ($closeSession) { - $this->closeSession(); - } Yii::$app = null; \yii\web\UploadedFile::reset(); Event::offAll(); @@ -363,26 +373,6 @@ public function getCsrfParamName(): string public function startApp(?\yii\log\Logger $logger = null): void { codecept_debug('Starting application'); - $config = include $this->configFile; - if (! isset($config['class'])) { - $config['class'] = $this->applicationClass ?? \yii\web\Application::class; - } - - if (isset($config['container'])) { - Yii::configure(Yii::$container, $config['container']); - unset($config['container']); - } - - match ($this->mailMethod) { - self::MAIL_CATCH => $config = $this->mockMailer($config), - self::MAIL_EVENT_AFTER => $config['components']['mailer']['on ' . BaseMailer::EVENT_AFTER_SEND] = function (MailEvent $event): void { - if ($event->isSuccessful) { - $this->emails[] = $event->message; - } - }, - self::MAIL_EVENT_BEFORE => $config['components']['mailer']['on ' . BaseMailer::EVENT_BEFORE_SEND] = fn (MailEvent $event) => $this->emails[] = $event->message, - self::MAIL_IGNORE => null// Do nothing - }; // Intercept shutdown registrations made in the `yii\log` namespace for the rest of // this process. Yii does not import `register_shutdown_function`, so an unqualified @@ -392,6 +382,10 @@ public function startApp(?\yii\log\Logger $logger = null): void // bootstrap (e.g. one the application itself sets via a `bootstrap` callback) keeps // itself alive — with its dispatcher, log targets and the application — until // process exit, because PHP's shutdown closures outlive the discarded application. + // PHP resolves this call at runtime (namespace fallback per call), so defining the + // function here also intercepts call sites compiled before it; and `$appStarting` + // is on before the config file is included, so a plain logger constructed there — + // or in a file it requires — is captured from the start. if (! function_exists('\yii\log\register_shutdown_function')) { eval(<<<'PHP' namespace yii\log { @@ -409,6 +403,27 @@ function register_shutdown_function(callable $callable, mixed ...$args) { // captured too; `resetApplication()` runs the stored registrations and turns it off. self::$appStarting = true; + $config = include $this->configFile; + if (! isset($config['class'])) { + $config['class'] = $this->applicationClass ?? \yii\web\Application::class; + } + + if (isset($config['container'])) { + Yii::configure(Yii::$container, $config['container']); + unset($config['container']); + } + + match ($this->mailMethod) { + self::MAIL_CATCH => $config = $this->mockMailer($config), + self::MAIL_EVENT_AFTER => $config['components']['mailer']['on ' . BaseMailer::EVENT_AFTER_SEND] = function (MailEvent $event): void { + if ($event->isSuccessful) { + $this->emails[] = $event->message; + } + }, + self::MAIL_EVENT_BEFORE => $config['components']['mailer']['on ' . BaseMailer::EVENT_BEFORE_SEND] = fn (MailEvent $event) => $this->emails[] = $event->message, + self::MAIL_IGNORE => null// Do nothing + }; + // Install the module logger before the application is built: while `createObject()` // runs, the application already calls `Yii::getLogger()` (its log dispatcher and // debug bootstrap). If no logger is installed yet, a plain `yii\log\Logger` is From 2d0e029261e8d9b3a6953995e51dd988cf518d80 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 11 Nov 2026 05:05:23 +0300 Subject: [PATCH 6/9] Support the modernized yii2-app-advanced template in tests - adapt the case layout to the template's renamed test dirs (Support, Functional/Unit suites, bootstrap.php) - disable the template Acceptance suite if present (needs module-phpbrowser, which this module does not require) - self-heal the template vendor symlink if it is broken - bind yii\mail\MailerInterface to the app mailer: the modern template's SiteController constructor-injects the interface, which the DI container cannot instantiate on its own - allow integer fixture row positions in grabFixture() (the template's unit tests use them) --- src/Codeception/Module/Yii2.php | 5 ++++- tests/bootstrap.php | 12 ++++++++++++ tests/cases/yii2-app-advanced/codeception.yml | 7 ++++--- tests/cases/yii2-app-advanced/config.php | 5 +++++ 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/Codeception/Module/Yii2.php b/src/Codeception/Module/Yii2.php index 372114f..afd4367 100644 --- a/src/Codeception/Module/Yii2.php +++ b/src/Codeception/Module/Yii2.php @@ -599,12 +599,15 @@ public function grabFixtures(): array * * // get first user by key, if a fixture is an instance of ActiveFixture * $user = $I->grabFixture('users', 'user1'); + * + * // or by integer position of the fixture data row + * $user = $I->grabFixture('users', 0); * ``` * * @throws \Codeception\Exception\ModuleException if the fixture is not found * @part fixtures */ - public function grabFixture(string $name, null|string $index = null): Fixture|\yii\db\ActiveRecord|null + public function grabFixture(string $name, null|int|string $index = null): Fixture|\yii\db\ActiveRecord|null { $fixtures = $this->grabFixtures(); if (! isset($fixtures[$name])) { diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 9dcd5fa..84e1c60 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -10,6 +10,18 @@ Yii::$container = new \yii\di\Container(); $link = dirname(__DIR__) . '/vendor/yiisoft/yii2-app-advanced/vendor'; +if (is_link($link) && ! file_exists($link)) { + unlink($link); +} if (! file_exists($link) && ! symlink(dirname(__DIR__) . '/vendor', $link)) { die('failed to create symlink'); } + +// The current yii2-app-advanced template ships an Acceptance suite that depends on +// codeception/module-phpbrowser, which this module does not require. The module's +// test scope is the functional and unit suites, so disable the suite before +// Codeception discovers it. +$acceptanceSuite = dirname(__DIR__) . '/vendor/yiisoft/yii2-app-advanced/frontend/tests/Acceptance.suite.yml'; +if (is_file($acceptanceSuite) && ! is_file($acceptanceSuite . '.disabled')) { + rename($acceptanceSuite, $acceptanceSuite . '.disabled'); +} diff --git a/tests/cases/yii2-app-advanced/codeception.yml b/tests/cases/yii2-app-advanced/codeception.yml index 35d94f1..d093fc0 100644 --- a/tests/cases/yii2-app-advanced/codeception.yml +++ b/tests/cases/yii2-app-advanced/codeception.yml @@ -1,11 +1,12 @@ namespace: frontend\tests +support_namespace: Support actor_suffix: Tester paths: tests: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests output: ../../_output - data: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests/_data - support: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests/_support -bootstrap: _bootstrap.php + data: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests/Support/data + support: ../../../vendor/yiisoft/yii2-app-advanced/frontend/tests/Support +bootstrap: bootstrap.php settings: colors: true memory_limit: 1024M diff --git a/tests/cases/yii2-app-advanced/config.php b/tests/cases/yii2-app-advanced/config.php index 72ebe3e..dcea71f 100644 --- a/tests/cases/yii2-app-advanced/config.php +++ b/tests/cases/yii2-app-advanced/config.php @@ -31,4 +31,9 @@ 'vendorPath' => __DIR__ . '/../../../vendor', ]); +// The modern template's SiteController constructor-injects `yii\mail\MailerInterface`, which +// Yii's DI cannot instantiate on its own (it is an interface). Bind it to the application +// mailer, which the Connector replaces with its in-memory mailer. +\Yii::$container->set(\yii\mail\MailerInterface::class, static fn (): \yii\mail\MailerInterface => \Yii::$app->mailer); + return $config; From dd5f5f2efa84a0f45d4e1f1fc9dfb19777bff2a8 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 11 Nov 2026 08:36:06 +0300 Subject: [PATCH 7/9] Make the test suite pass PHPStan 2.3.x - cast the fixture row index to string for BaseActiveFixture::getModel() (rows are keyed by position; numeric string keys collapse to the same slot) - restructure the findRecord() reflection check to satisfy booleanAnd.rightAlwaysTrue - make the yii\mail\MailerInterface container binding null-safe and type the stub Application::$mailer property --- src/Codeception/Module/Yii2.php | 7 ++++--- tests/Yii.stub | 3 +++ tests/cases/yii2-app-advanced/config.php | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Codeception/Module/Yii2.php b/src/Codeception/Module/Yii2.php index afd4367..ba2b4a7 100644 --- a/src/Codeception/Module/Yii2.php +++ b/src/Codeception/Module/Yii2.php @@ -18,6 +18,7 @@ use Exception; use PHPUnit\Framework\Assert; use ReflectionClass; +use ReflectionMethod; use RuntimeException; use Yii; use yii\base\Security; @@ -616,7 +617,7 @@ public function grabFixture(string $name, null|int|string $index = null): Fixtur $fixture = $fixtures[$name]; return match (true) { $index === null => $fixture, - $fixture instanceof \yii\test\BaseActiveFixture => $fixture->getModel($index), + $fixture instanceof \yii\test\BaseActiveFixture => $fixture->getModel((string) $index), default => throw new ModuleException($this, "Fixture $name is not an instance of ActiveFixture and can't be loaded with second parameter"), }; } @@ -717,8 +718,8 @@ protected function findRecord(string $model, array $attributes = []): ActiveReco throw new RuntimeException("Class $model does not exist"); } $rc = new ReflectionClass($model); - if ($rc->hasMethod('find') - && ($findMethod = $rc->getMethod('find')) + $findMethod = $rc->hasMethod('find') ? $rc->getMethod('find') : null; + if ($findMethod instanceof ReflectionMethod && $findMethod->isStatic() && $findMethod->isPublic() && $findMethod->getNumberOfRequiredParameters() === 0 diff --git a/tests/Yii.stub b/tests/Yii.stub index 87cd9aa..3d70b55 100644 --- a/tests/Yii.stub +++ b/tests/Yii.stub @@ -16,6 +16,9 @@ namespace yii { namespace yii\base { + /** + * @property-read \yii\mail\MailerInterface $mailer + */ class Application {} class Model {} diff --git a/tests/cases/yii2-app-advanced/config.php b/tests/cases/yii2-app-advanced/config.php index dcea71f..36b0ca6 100644 --- a/tests/cases/yii2-app-advanced/config.php +++ b/tests/cases/yii2-app-advanced/config.php @@ -34,6 +34,6 @@ // The modern template's SiteController constructor-injects `yii\mail\MailerInterface`, which // Yii's DI cannot instantiate on its own (it is an interface). Bind it to the application // mailer, which the Connector replaces with its in-memory mailer. -\Yii::$container->set(\yii\mail\MailerInterface::class, static fn (): \yii\mail\MailerInterface => \Yii::$app->mailer); +\Yii::$container->set(\yii\mail\MailerInterface::class, static fn (): \yii\mail\MailerInterface => \Yii::$app?->mailer ?? throw new RuntimeException('The Yii application is not initialized')); return $config; From 8b4b34267cdfb9eaff3497501c05131e508ab8fd Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 11 Nov 2026 08:44:18 +0300 Subject: [PATCH 8/9] Exclude generated actor actions from PHPStan and clean the mailer binding - exclude tests/_support/_generated from analysis (but keep scanning it) via the structured excludePaths; the generated never-returned actions are unverifiable statically - drop the now-unmatched generated-actions ignore rules from phpstan.neon - revert the stub change and make the MailerInterface binding throw when the app is missing --- phpstan.neon | 16 ++++++++-------- tests/Yii.stub | 3 --- tests/cases/yii2-app-advanced/config.php | 8 +++++++- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index e695b2d..1d8168e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -16,13 +16,13 @@ parameters: - tests 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.$#" - # If you want to ignore missing generics errors in the future, you can add: - # - identifier: missingType.generics + # The actor action classes are generated by `codecept build`; skip their + # analysis (their `never`-typed actions cannot be verified statically) + # while still scanning them so the actor classes remain discoverable. + excludePaths: + analyse: + - tests/_support/_generated/* + # If you want to ignore missing generics errors in the future, you can add: + # - identifier: missingType.generics stubFiles: - tests/Yii.stub diff --git a/tests/Yii.stub b/tests/Yii.stub index 3d70b55..87cd9aa 100644 --- a/tests/Yii.stub +++ b/tests/Yii.stub @@ -16,9 +16,6 @@ namespace yii { namespace yii\base { - /** - * @property-read \yii\mail\MailerInterface $mailer - */ class Application {} class Model {} diff --git a/tests/cases/yii2-app-advanced/config.php b/tests/cases/yii2-app-advanced/config.php index 36b0ca6..994f1c0 100644 --- a/tests/cases/yii2-app-advanced/config.php +++ b/tests/cases/yii2-app-advanced/config.php @@ -34,6 +34,12 @@ // The modern template's SiteController constructor-injects `yii\mail\MailerInterface`, which // Yii's DI cannot instantiate on its own (it is an interface). Bind it to the application // mailer, which the Connector replaces with its in-memory mailer. -\Yii::$container->set(\yii\mail\MailerInterface::class, static fn (): \yii\mail\MailerInterface => \Yii::$app?->mailer ?? throw new RuntimeException('The Yii application is not initialized')); +\Yii::$container->set(\yii\mail\MailerInterface::class, static function (): \yii\mail\MailerInterface { + if (\Yii::$app === null) { + throw new RuntimeException('The Yii application is not initialized'); + } + + return \Yii::$app->mailer; +}); return $config; From 6039a307ebd4bf9cabc69fe199d7fb8607a44d3b Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 11 Nov 2026 08:51:04 +0300 Subject: [PATCH 9/9] Regenerate the PHPStan baseline against the rebuilt actor actions The committed baseline was generated with the codeception 5.1.x action template; the current 5.3.x template produces different actor actions. Regenerated after codecept build (CI order: build before phpstan), now a strict subset covering the remaining errors only. --- phpstan-baseline.neon | 1434 ----------------------------------------- 1 file changed, 1434 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 01178ed..701801c 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,1439 +1,5 @@ parameters: ignoreErrors: - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayHasKey\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayHasKey\(\) has parameter \$array with generic interface ArrayAccess but does not specify its types\: TKey, TValue$#' - identifier: missingType.generics - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayHasKey\(\) has parameter \$array with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayNotHasKey\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayNotHasKey\(\) has parameter \$array with generic interface ArrayAccess but does not specify its types\: TKey, TValue$#' - identifier: missingType.generics - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertArrayNotHasKey\(\) has parameter \$array with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertClassHasAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertClassHasStaticAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertClassNotHasAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertClassNotHasStaticAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContains\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContains\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsEquals\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsOnly\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsOnly\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsOnlyInstancesOf\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertContainsOnlyInstancesOf\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertCount\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertCount\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryDoesNotExist\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryExists\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryIsNotReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryIsNotWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryIsReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDirectoryIsWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertDoesNotMatchRegularExpression\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEmpty\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEqualsCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEqualsIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertEqualsWithDelta\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFalse\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileDoesNotExist\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileEqualsCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileEqualsIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileExists\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileIsNotReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileIsNotWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileIsReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileIsWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileNotEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileNotEqualsCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileNotEqualsIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFileNotExists\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertFinite\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertGreaterOrEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertGreaterThan\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertGreaterThanOrEqual\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertInfinite\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertInstanceOf\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsArray\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsBool\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsCallable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsClosedResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsEmpty\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsFloat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsInt\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsIterable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotArray\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotBool\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotCallable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotClosedResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotFloat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotInt\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotIterable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotNumeric\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotObject\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotScalar\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNotWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsNumeric\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsObject\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsReadable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsResource\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsScalar\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertIsWritable\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJson\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonFileEqualsJsonFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonFileNotEqualsJsonFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonStringEqualsJsonFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonStringEqualsJsonString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonStringNotEqualsJsonFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertJsonStringNotEqualsJsonString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertLessOrEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertLessThan\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertLessThanOrEqual\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertMatchesRegularExpression\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNan\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContains\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContains\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsEquals\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsEquals\(\) has parameter \$needle with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsOnly\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotContainsOnly\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotCount\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotCount\(\) has parameter \$haystack with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEmpty\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEquals\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEqualsCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEqualsIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotEqualsWithDelta\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotFalse\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotInstanceOf\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotNull\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotRegExp\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotSame\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotSameSize\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotSameSize\(\) has parameter \$actual with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotSameSize\(\) has parameter \$expected with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNotTrue\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertNull\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertObjectHasAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertObjectNotHasAttribute\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertRegExp\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertSame\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertSameSize\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertSameSize\(\) has parameter \$actual with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertSameSize\(\) has parameter \$expected with no value type specified in iterable type iterable\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringContainsString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringContainsStringIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEndsNotWith\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEndsWith\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEqualsFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEqualsFileCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringEqualsFileIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringMatchesFormat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringMatchesFormatFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotContainsString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotContainsStringIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotEqualsFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotEqualsFileCanonicalizing\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotEqualsFileIgnoringCase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotMatchesFormat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringNotMatchesFormatFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringStartsNotWith\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertStringStartsWith\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertThat\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertThatItsNot\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertTrue\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlFileEqualsXmlFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlFileNotEqualsXmlFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlStringEqualsXmlFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlStringEqualsXmlString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlStringNotEqualsXmlFile\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:assertXmlStringNotEqualsXmlString\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:attachFile\(\) has parameter \$field with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSee\(\) has parameter \$selector with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeCheckboxIsChecked\(\) has parameter \$checkbox with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeElement\(\) has parameter \$attributes with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeElement\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInField\(\) has parameter \$field with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInFormFields\(\) has parameter \$formSelector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInFormFields\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeInTitle\(\) has parameter \$title with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeNumberOfElements\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeOptionIsSelected\(\) has parameter \$optionText with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:canSeeOptionIsSelected\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSee\(\) has parameter \$selector with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeCheckboxIsChecked\(\) has parameter \$checkbox with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeElement\(\) has parameter \$attributes with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeElement\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInField\(\) has parameter \$field with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInFormFields\(\) has parameter \$formSelector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInFormFields\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeInTitle\(\) has parameter \$title with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeOptionIsSelected\(\) has parameter \$optionText with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:cantSeeOptionIsSelected\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:checkOption\(\) has parameter \$option with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:click\(\) has parameter \$context with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:click\(\) has parameter \$link with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSee\(\) has parameter \$selector with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeCheckboxIsChecked\(\) has parameter \$checkbox with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeElement\(\) has parameter \$attributes with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeElement\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInField\(\) has parameter \$field with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInFormFields\(\) has parameter \$formSelector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInFormFields\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeInTitle\(\) has parameter \$title with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeOptionIsSelected\(\) has parameter \$optionText with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:dontSeeOptionIsSelected\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:fail\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:fillField\(\) has parameter \$field with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:fillField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabAttributeFrom\(\) has parameter \$cssOrXpath with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabCookie\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabFixtures\(\) has invalid return type tests\\_generated\\Fixture\.$#' - identifier: class.notFound - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabMultiple\(\) has parameter \$cssOrXpath with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabRecord\(\) has invalid return type tests\\_generated\\ActiveRecordInterface\.$#' - identifier: class.notFound - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabRecord\(\) return type has no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabSentEmails\(\) has invalid return type tests\\_generated\\MessageInterface\.$#' - identifier: class.notFound - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabTextFrom\(\) has parameter \$cssOrXPathOrRegex with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:grabValueFrom\(\) has parameter \$field with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:markTestIncomplete\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:markTestSkipped\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:resetCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:resetCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:see\(\) has parameter \$selector with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeCheckboxIsChecked\(\) has parameter \$checkbox with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeCookie\(\) has parameter \$cookie with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeCookie\(\) has parameter \$params with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeElement\(\) has parameter \$attributes with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeElement\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInField\(\) has parameter \$field with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInField\(\) has parameter \$value with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInFormFields\(\) has parameter \$formSelector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInFormFields\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeInTitle\(\) has parameter \$title with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeNumberOfElements\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeOptionIsSelected\(\) has parameter \$optionText with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:seeOptionIsSelected\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:selectOption\(\) has parameter \$option with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:selectOption\(\) has parameter \$select with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:sendAjaxGetRequest\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:sendAjaxPostRequest\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:sendAjaxRequest\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:setServerParameters\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:submitForm\(\) has parameter \$params with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:submitForm\(\) has parameter \$selector with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Method tests\\FunctionalTester\:\:uncheckOption\(\) has parameter \$option with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^PHPDoc tag @return with type array\\|tests\\_generated\\ActiveRecordInterface\|null is not subtype of native type array\|yii\\db\\ActiveRecordInterface\|null\.$#' - identifier: return.phpDocType - count: 1 - path: tests/_support/FunctionalTester.php - - - - message: '#^Parameter \#2 \$arguments of class Codeception\\Step\\Action constructor expects array\, list\ given\.$#' - identifier: argument.type - count: 193 - path: tests/_support/FunctionalTester.php - - - - message: '#^Parameter \#2 \$arguments of class Codeception\\Step\\Assertion constructor expects array\, list\ given\.$#' - identifier: argument.type - count: 23 - path: tests/_support/FunctionalTester.php - - - - message: '#^Parameter \#2 \$arguments of class Codeception\\Step\\Condition constructor expects array\, list\ given\.$#' - identifier: argument.type - count: 4 - path: tests/_support/FunctionalTester.php - - - - message: '#^Parameter \#2 \$arguments of class Codeception\\Step\\ConditionalAssertion constructor expects array\, list\ given\.$#' - identifier: argument.type - count: 39 - path: tests/_support/FunctionalTester.php - - message: '#^Method tests\\fixtures\\EmptyFixture\:\:load\(\) has no return type specified\.$#' identifier: missingType.return