Fix new PHPStan issues

This commit is contained in:
Daniel Siepmann 2022-01-06 08:25:13 +01:00
parent 2efe65c5b2
commit b7adf27475
2 changed files with 5 additions and 2 deletions

View file

@ -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",

View file

@ -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\.$#'