mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 00:16:13 +01:00

[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
This commit is contained in:
Daniel Siepmann 2024-02-07 07:25:45 +01:00
parent 1462282da6
commit 1539650c7b
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 2 additions and 0 deletions

View file

@ -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(); $typo3Version = new \TYPO3\CMS\Core\Information\Typo3Version();
if ($typo3Version->getMajorVersion() < 12) { if ($typo3Version->getMajorVersion() < 12) {
$tca = array_replace_recursive( $tca = array_replace_recursive(

View file

@ -60,6 +60,7 @@
"seld/jsonlint": "^1.10.1", "seld/jsonlint": "^1.10.1",
"spaze/phpstan-disallowed-calls": "^3.1", "spaze/phpstan-disallowed-calls": "^3.1",
"squizlabs/php_codesniffer": "^3.8.1", "squizlabs/php_codesniffer": "^3.8.1",
"staabm/phpstan-todo-by": "^0.1.22",
"symfony/console": "^5.4 || ^6.4 || ^7.0", "symfony/console": "^5.4 || ^6.4 || ^7.0",
"symfony/translation": "^5.4 || ^6.4 || ^7.0", "symfony/translation": "^5.4 || ^6.4 || ^7.0",
"symfony/yaml": "^5.4 || ^6.4 || ^7.0", "symfony/yaml": "^5.4 || ^6.4 || ^7.0",