From 81f4051b17bfa5b8b28d9ce4749becc309358a03 Mon Sep 17 00:00:00 2001 From: Oliver Klee <typo3-coding@oliverklee.de> Date: Sat, 17 Dec 2022 16:11:14 +0100 Subject: [PATCH] [TASK] Update to PHPStan 1.9.12 The new version finds some more potential problems. > composer req --dev phpstan/phpstan:^1.9.12 > ./Build/Scripts/runTests.sh -s phpstanGenerateBaseline Resolves: #99573 Releases: main, 11.5 Change-Id: Ieee3a5881a854946cb180965e4f182b27ea05aaf Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77419 Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- Build/phpstan/phpstan-baseline.neon | 5 +++++ composer.json | 2 +- composer.lock | 14 +++++++------- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Build/phpstan/phpstan-baseline.neon b/Build/phpstan/phpstan-baseline.neon index 41e9ca532e18..1f65fab763bd 100644 --- a/Build/phpstan/phpstan-baseline.neon +++ b/Build/phpstan/phpstan-baseline.neon @@ -335,6 +335,11 @@ parameters: count: 1 path: ../../typo3/sysext/core/Classes/Core/ClassLoadingInformationGenerator.php + - + message: "#^Binary operation \"&\" between string and int\\<1, max\\> results in an error\\.$#" + count: 1 + path: ../../typo3/sysext/core/Classes/DataHandling/DataHandler.php + - message: "#^Binary operation \"\\*\\=\" between non\\-falsy\\-string and \\-1 results in an error\\.$#" count: 1 diff --git a/composer.json b/composer.json index 6530fea1dda6..eca7f512fcda 100644 --- a/composer.json +++ b/composer.json @@ -110,7 +110,7 @@ "friendsofphp/php-cs-fixer": "^3.12.0", "friendsoftypo3/phpstan-typo3": "^0.9.0", "php-webdriver/webdriver": "^1.13.0", - "phpstan/phpstan": "^1.9.5", + "phpstan/phpstan": "^1.9.12", "phpstan/phpstan-phpunit": "^1.3.3", "phpunit/phpunit": "^9.5.25", "typo3/cms-styleguide": "~12.0@dev", diff --git a/composer.lock b/composer.lock index d757bc9b332c..230a5b509687 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "613f98aa21f0dd51d7e505e8001badc8", + "content-hash": "cc5040c18df5b469381d1c1d9ba0badd", "packages": [ { "name": "bacon/bacon-qr-code", @@ -6378,16 +6378,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.9.5", + "version": "1.9.12", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "4d18c5d98965029c2aa1ccbd91dc22e7ba8c5034" + "reference": "44a338ff0d5572c13fd77dfd91addb96e48c29f8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/4d18c5d98965029c2aa1ccbd91dc22e7ba8c5034", - "reference": "4d18c5d98965029c2aa1ccbd91dc22e7ba8c5034", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/44a338ff0d5572c13fd77dfd91addb96e48c29f8", + "reference": "44a338ff0d5572c13fd77dfd91addb96e48c29f8", "shasum": "" }, "require": { @@ -6417,7 +6417,7 @@ ], "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.9.5" + "source": "https://github.com/phpstan/phpstan/tree/1.9.12" }, "funding": [ { @@ -6433,7 +6433,7 @@ "type": "tidelift" } ], - "time": "2023-01-02T21:35:42+00:00" + "time": "2023-01-17T10:44:04+00:00" }, { "name": "phpstan/phpstan-phpunit", -- GitLab