From b7adf274752d4763369d09d39904653059bd7841 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 6 Jan 2022 08:25:13 +0100 Subject: [PATCH] Fix new PHPStan issues --- composer.json | 2 +- phpstan.neon | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f7e3c02..3474376 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ }, "require-dev": { "phpunit/phpunit": "^9.0", - "phpstan/phpstan": "^1.2", + "phpstan/phpstan": "^1.3", "phpstan/extension-installer": "^1.1", "jangregor/phpstan-prophecy": "^1.0", "phpspec/prophecy-phpunit": "^2.0", diff --git a/phpstan.neon b/phpstan.neon index ffcbb26..38ffedd 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,11 +6,14 @@ parameters: checkMissingIterableValueType: false reportUnmatchedIgnoredErrors: false ignoreErrors: - # Ignore error for TYPO3 10 (ResultStatement) and TYPO3 11 (Statement) + # Ignore error for TYPO3 10 and TYPO3 11 - '#Cannot call method fetch\(\) on Doctrine\\DBAL\\Driver\\Statement\|int\.#' - '#Cannot call method fetch\(\) on Doctrine\\DBAL\\Driver\\ResultStatement\|int\.#' + - '#Cannot call method fetch\(\) on Doctrine\\DBAL\\Result\|int\.#' - '#Cannot call method fetchAll\(\) on Doctrine\\DBAL\\Driver\\Statement\|int\.#' - '#Cannot call method fetchAll\(\) on Doctrine\\DBAL\\Driver\\ResultStatement\|int\.#' + - '#Cannot call method fetchAll\(\) on Doctrine\\DBAL\\Result\|int\.#' - '#Cannot call method fetchColumn\(\) on Doctrine\\DBAL\\Driver\\Statement\|int\.#' - '#Cannot call method fetchColumn\(\) on Doctrine\\DBAL\\Driver\\ResultStatement\|int\.#' + - '#Cannot call method fetchColumn\(\) on Doctrine\\DBAL\\Result\|int\.#' - '#^Variable \$_EXTKEY might not be defined\.$#'