From 7f63ae8262965c3a47e371d27459637f4d8fca0e Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 14 Apr 2022 10:23:24 +0200 Subject: [PATCH] Satisfy phpstan for now --- composer.json | 2 +- phpstan.neon | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3474376..354a668 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ }, "require-dev": { "phpunit/phpunit": "^9.0", - "phpstan/phpstan": "^1.3", + "phpstan/phpstan": "1.5.4", "phpstan/extension-installer": "^1.1", "jangregor/phpstan-prophecy": "^1.0", "phpspec/prophecy-phpunit": "^2.0", diff --git a/phpstan.neon b/phpstan.neon index ecc48aa..8b39b98 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -18,3 +18,6 @@ parameters: - '#Cannot call method fetchColumn\(\) on Doctrine\\DBAL\\Result\|int\.#' - "#^Parameter \\#[0-9] \\.\\.\\.\\$predicates of method TYPO3\\\\CMS\\\\Core\\\\Database\\\\Query\\\\QueryBuilder\\:\\:where\\(\\) expects array\\\\|Doctrine\\\\DBAL\\\\Query\\\\Expression\\\\CompositeExpression, string given\\.$#" - '#^Variable \$_EXTKEY might not be defined\.$#' + - "#^Cannot access offset '.*' on mixed.$#" + - "#^Parameter .* expects .*, mixed given.$#" + - "#^Cannot call method .* on mixed.$#"