From 25c1ffd42a7c57e68f8b3380c7fe2d7c8883efe1 Mon Sep 17 00:00:00 2001 From: "J. Peter M. Schuler" Date: Fri, 6 Sep 2024 11:44:59 +0200 Subject: [PATCH] [TASK] update phpstan baseline --- composer.json | 2 +- phpstan-baseline.neon | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index 185a17f..66f8f63 100644 --- a/composer.json +++ b/composer.json @@ -107,7 +107,7 @@ "lint:phpcs:dry-run": "phpcs Classes", "lint:phpcs:dry-run:onlyerrors": "phpcs -n Classes", "lint:phpstan": "phpstan --level=5 --memory-limit=1G analyse", - "lint:phpstan:baseline": "phpstan --level=5 --memory-limit=1G analyse --generate-baseline", + "lint:phpstan:baseline": "phpstan --level=5 --memory-limit=1G analyse --generate-baseline --allow-empty-baseline", "lint:phpstan:ci": "phpstan --level=5 --memory-limit=1G --no-progress analyse", "lint:typoscript": "typoscript-lint", "lint:xliff": "xmllint --schema ./Tests/Resources/xliff-core-1.2-strict.xsd --noout $(find Resources/Private/Language -name '*.xlf')", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 0fc85ad..aab4991 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,11 +1,2 @@ parameters: - ignoreErrors: - - - message: "#^Call to method assign\\(\\) on an unknown class TYPO3\\\\CMS\\\\Fluid\\\\View\\\\StandaloneView\\.$#" - count: 2 - path: Classes/SignalSlot/MailManipulation.php - - - - message: "#^Parameter \\$standaloneView of method Jpmschuler\\\\PowermailLimits\\\\SignalSlot\\\\MailManipulation\\:\\:createEmailBodyBeforeRender\\(\\) has invalid type TYPO3\\\\CMS\\\\Fluid\\\\View\\\\StandaloneView\\.$#" - count: 1 - path: Classes/SignalSlot/MailManipulation.php + ignoreErrors: []