From 1539650c7be11843c26c6a07c882b97737877219 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 7 Feb 2024 07:25:45 +0100 Subject: [PATCH] [WIP][TASK] Add PHPStan extension for to dos A new composer package "staabm/phpstan-todo-by" is added. This one is a PHPStan extension which will check for open to dos. This is very helpful for TYPO3 version checks. WIP: Our setup is not following composer defaults and is not supported yet. Wait for: https://github.com/staabm/phpstan-todo-by/issues/85 Resolves: #1158 --- Configuration/TCA/tx_tea_domain_model_tea.php | 1 + composer.json | 1 + 2 files changed, 2 insertions(+) diff --git a/Configuration/TCA/tx_tea_domain_model_tea.php b/Configuration/TCA/tx_tea_domain_model_tea.php index ff1568c..b6b4989 100644 --- a/Configuration/TCA/tx_tea_domain_model_tea.php +++ b/Configuration/TCA/tx_tea_domain_model_tea.php @@ -205,6 +205,7 @@ $tca = [ ], ]; +// TODO: typo3/cms-backend:13.0.0 Remove the following block as we no longer support version prior 12 $typo3Version = new \TYPO3\CMS\Core\Information\Typo3Version(); if ($typo3Version->getMajorVersion() < 12) { $tca = array_replace_recursive( diff --git a/composer.json b/composer.json index bd6927d..0dd26fe 100644 --- a/composer.json +++ b/composer.json @@ -60,6 +60,7 @@ "seld/jsonlint": "^1.10.1", "spaze/phpstan-disallowed-calls": "^3.1", "squizlabs/php_codesniffer": "^3.8.1", + "staabm/phpstan-todo-by": "^0.1.22", "symfony/console": "^5.4 || ^6.4 || ^7.0", "symfony/translation": "^5.4 || ^6.4 || ^7.0", "symfony/yaml": "^5.4 || ^6.4 || ^7.0",