From 2eeb762cd9a4ef2dbf10381130bd6187415751ee Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Mon, 19 Jul 2021 22:50:32 +0200 Subject: [PATCH] Moved specific phpstan ignore to their own lines --- config/test/test_config.global.php | 4 ++-- phpstan.neon | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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'