From 26ef51380a0ee65c4e6bba84b42ada1751f4a1e7 Mon Sep 17 00:00:00 2001 From: Oliver Klee <typo3-coding@oliverklee.de> Date: Fri, 4 Nov 2022 15:03:13 +0100 Subject: [PATCH] [TASK] Update to PHPStan 1.9.2 This update makes a warning more specific. Run commands: > composer req --dev phpstan/phpstan:^1.9.2 > ./Build/Scripts/runTests.sh -s phpstanGenerateBaseline Resolves: #99045 Releases: main, 11.5 Change-Id: I4c5af9d69e0e5b8f4b0d78efd4caa4ed79aed795 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76498 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- Build/phpstan/phpstan-baseline.neon | 2 +- composer.json | 2 +- composer.lock | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Build/phpstan/phpstan-baseline.neon b/Build/phpstan/phpstan-baseline.neon index 4854592cb9f9..e7ba73280d05 100644 --- a/Build/phpstan/phpstan-baseline.neon +++ b/Build/phpstan/phpstan-baseline.neon @@ -101,7 +101,7 @@ parameters: path: ../../typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php - - message: "#^Offset 'arguments' on array\\{arguments\\: string\\|false\\} on left side of \\?\\? always exists and is not nullable\\.$#" + message: "#^Offset 'arguments' on array\\{arguments\\: non\\-empty\\-string\\|false\\} on left side of \\?\\? always exists and is not nullable\\.$#" count: 1 path: ../../typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php diff --git a/composer.json b/composer.json index dba683a2a423..1376dfe1fdfd 100644 --- a/composer.json +++ b/composer.json @@ -117,7 +117,7 @@ "php-webdriver/webdriver": "^1.12.0", "phpspec/prophecy": "^1.15.0", "phpspec/prophecy-phpunit": "^2.0.1", - "phpstan/phpstan": "^1.9.0", + "phpstan/phpstan": "^1.9.2", "phpstan/phpstan-phpunit": "^1.2.2", "phpunit/phpunit": "^9.5.21", "typo3/cms-styleguide": "~11.5.4", diff --git a/composer.lock b/composer.lock index cce873601480..0e98a7ce447e 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": "495d39ca752b613f3d1627aa15b6eaeb", + "content-hash": "413772291837560b6e82eb06c9c46f98", "packages": [ { "name": "bacon/bacon-qr-code", @@ -7095,16 +7095,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.9.0", + "version": "1.9.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "e08de53a5eec983de78a787a88e72518cf8fe43a" + "reference": "d6fdf01c53978b6429f1393ba4afeca39cc68afa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e08de53a5eec983de78a787a88e72518cf8fe43a", - "reference": "e08de53a5eec983de78a787a88e72518cf8fe43a", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d6fdf01c53978b6429f1393ba4afeca39cc68afa", + "reference": "d6fdf01c53978b6429f1393ba4afeca39cc68afa", "shasum": "" }, "require": { @@ -7134,7 +7134,7 @@ ], "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/1.9.0" + "source": "https://github.com/phpstan/phpstan/tree/1.9.2" }, "funding": [ { @@ -7150,7 +7150,7 @@ "type": "tidelift" } ], - "time": "2022-11-03T07:26:48+00:00" + "time": "2022-11-10T09:56:11+00:00" }, { "name": "phpstan/phpstan-phpunit", -- GitLab