From b971f82690faec506810357e99636a0ff2430bc8 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 10 Aug 2023 13:37:21 +0200 Subject: [PATCH] Update PHPStan PHPStan triggers a deprecation on PHP 8.2, but that got fixed with an update. --- composer.json | 2 +- phpstan-baseline.neon | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cb161a9b..56f91fd4 100644 --- a/composer.json +++ b/composer.json @@ -53,7 +53,7 @@ "jangregor/phpstan-prophecy": "1.0.0", "phpspec/prophecy-phpunit": "^1.0 || ^2.0", "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "1.5.7", + "phpstan/phpstan": "1.10.28", "phpstan/phpstan-phpunit": "1.1.1", "saschaegerer/phpstan-typo3": "1.1.2", "squizlabs/php_codesniffer": "^3.5", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 11c86bfc..78994b38 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -10,6 +10,11 @@ parameters: count: 1 path: Classes/Service/DestinationDataImportService.php + - + message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, 'strval' given\\.$#" + count: 1 + path: Classes/Domain/DestinationData/ImportFactory.php + - message: "#^Parameter \\#2 \\$array of function array_map expects array, mixed given\\.$#" count: 1