diff --git a/config/test/test_config.global.php b/config/test/test_config.global.php index c2375cba..cf824752 100644 --- a/config/test/test_config.global.php +++ b/config/test/test_config.global.php @@ -120,7 +120,7 @@ return [ 'name' => 'start_collecting_coverage', 'path' => '/api-tests/start-coverage', 'middleware' => middleware(static function () use (&$coverage) { - if ($coverage) { + if ($coverage) { // @phpstan-ignore-line $coverage->start('API tests'); } return new EmptyResponse(); @@ -131,7 +131,7 @@ return [ 'name' => 'dump_coverage', 'path' => '/api-tests/stop-coverage', 'middleware' => middleware(static function () use (&$coverage) { - if ($coverage) { + if ($coverage) { // @phpstan-ignore-line $basePath = __DIR__ . '/../../build/coverage-api'; $coverage->stop(); (new PHP())->process($coverage, $basePath . '.cov'); diff --git a/phpstan.neon b/phpstan.neon index eb98657e..7d90c219 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,7 +3,5 @@ includes: parameters: checkMissingIterableValueType: false checkGenericClassInNonGenericObjectType: false - ignoreErrors: - - '#If condition is always false#' symfony: console_application_loader: 'config/cli-app.php'