From de6c31760245586b80d65d55e153cb2e97054d06 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 11 Oct 2021 11:32:27 +0200 Subject: [PATCH] Do not break PHPStan due to new PHPDoc in TYPO3 source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update of TYPO3 results in the following error: ------ ----------------------------------------------------------------------- Line Classes/Service/DestinationDataImportService.php ------ ----------------------------------------------------------------------- 135 Property Wrm\Events\Service\DestinationDataImportService::$objectManager with generic class TYPO3\CMS\Extbase\Object\ObjectManager does not specify its types: T 💡 You can turn this off by setting checkGenericClassInNonGenericObjectType: false in your phpstan.neon. 160 Method Wrm\Events\Service\DestinationDataImportService::__construct() has parameter $objectManager with generic class TYPO3\CMS\Extbase\Object\ObjectManager but does not specify its types: T 💡 You can turn this off by setting checkGenericClassInNonGenericObjectType: false in your phpstan.neon. ------ ----------------------------------------------------------------------- We disable the check for now. --- phpstan.neon | 1 + 1 file changed, 1 insertion(+) diff --git a/phpstan.neon b/phpstan.neon index 1b07856..0e1d659 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,4 +6,5 @@ parameters: - Classes - Configuration checkMissingIterableValueType: false + checkGenericClassInNonGenericObjectType: false reportUnmatchedIgnoredErrors: false