From 89ed8677b82d0504c26e0f71cf73335831846da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dariusz=20Rumi=C5=84ski?= Date: Wed, 18 Dec 2024 09:47:33 +0100 Subject: [PATCH] chore: upgrade PHPStan (#8321) --- dev-tools/composer.json | 6 +++--- dev-tools/composer.lock | 34 +++++++++++++++++----------------- dev-tools/phpstan/baseline.php | 6 ------ 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/dev-tools/composer.json b/dev-tools/composer.json index e5240236a55..178bcbe8624 100644 --- a/dev-tools/composer.json +++ b/dev-tools/composer.json @@ -9,9 +9,9 @@ "mi-schi/phpmd-extension": "^4.3.0", "phpmd/phpmd": "^2.15.0", "phpstan/extension-installer": "^1.4.3", - "phpstan/phpstan": "^2.0.2", - "phpstan/phpstan-phpunit": "^2.0.1", - "phpstan/phpstan-strict-rules": "^2.0.0", + "phpstan/phpstan": "^2.0.4", + "phpstan/phpstan-phpunit": "^2.0.2", + "phpstan/phpstan-strict-rules": "^2.0.1", "phpstan/phpstan-symfony": "^2.0.0" }, "config": { diff --git a/dev-tools/composer.lock b/dev-tools/composer.lock index 8e594a2d0b7..f8b09fd2dbc 100644 --- a/dev-tools/composer.lock +++ b/dev-tools/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": "ebc0bb7af2d85a08528251d53a7038f7", + "content-hash": "ae17b12bb9e8524934ef96b341e4c6ab", "packages": [ { "name": "composer-unused/contracts", @@ -762,16 +762,16 @@ }, { "name": "phpstan/phpstan", - "version": "2.0.2", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "6c98c7600fc717b2c78c11ef60040d5b1e359c82" + "reference": "50d276fc3bf1430ec315f2f109bbde2769821524" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/6c98c7600fc717b2c78c11ef60040d5b1e359c82", - "reference": "6c98c7600fc717b2c78c11ef60040d5b1e359c82" + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/50d276fc3bf1430ec315f2f109bbde2769821524", + "reference": "50d276fc3bf1430ec315f2f109bbde2769821524" }, "require": { "php": "^7.4|^8.0" @@ -793,20 +793,20 @@ }, { "name": "phpstan/phpstan-phpunit", - "version": "2.0.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "4b6ad7fab8683ff4efd7887ba26ef8ee171c7475" + "reference": "2cedfb72dfd0e9c5d636f837b945c9f20c943bdb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/4b6ad7fab8683ff4efd7887ba26ef8ee171c7475", - "reference": "4b6ad7fab8683ff4efd7887ba26ef8ee171c7475" + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/2cedfb72dfd0e9c5d636f837b945c9f20c943bdb", + "reference": "2cedfb72dfd0e9c5d636f837b945c9f20c943bdb" }, "require": { "php": "^7.4 || ^8.0", - "phpstan/phpstan": "^2.0" + "phpstan/phpstan": "^2.0.4" }, "type": "phpstan-extension", "extra": { @@ -829,20 +829,20 @@ }, { "name": "phpstan/phpstan-strict-rules", - "version": "2.0.0", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "a4a6a08bd4a461e516b9c3b8fdbf0f1883b34158" + "reference": "ed6fea0ad4ad9c7e25f3ad2e7c4d420cf1e67fe3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/a4a6a08bd4a461e516b9c3b8fdbf0f1883b34158", - "reference": "a4a6a08bd4a461e516b9c3b8fdbf0f1883b34158" + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/ed6fea0ad4ad9c7e25f3ad2e7c4d420cf1e67fe3", + "reference": "ed6fea0ad4ad9c7e25f3ad2e7c4d420cf1e67fe3" }, "require": { "php": "^7.4 || ^8.0", - "phpstan/phpstan": "^2.0" + "phpstan/phpstan": "^2.0.4" }, "type": "phpstan-extension", "extra": { @@ -1738,13 +1738,13 @@ "packages-dev": [], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { "php": "^8.3" }, - "platform-dev": [], + "platform-dev": {}, "platform-overrides": { "php": "8.3" }, diff --git a/dev-tools/phpstan/baseline.php b/dev-tools/phpstan/baseline.php index 4210199a2d9..dcc14cc8b94 100644 --- a/dev-tools/phpstan/baseline.php +++ b/dev-tools/phpstan/baseline.php @@ -3157,12 +3157,6 @@ 'count' => 1, 'path' => __DIR__ . '/../../tests/Test/TestCaseUtils.php', ]; -$ignoreErrors[] = [ - 'message' => '#^Property PhpCsFixer\\\\Tests\\\\Test\\\\TokensWithObservedTransformers\\:\\:\\$observedModificationsPerTransformer \\(array\\\\>\\) does not accept non\\-empty\\-array\\\\>\\.$#', - 'identifier' => 'assign.propertyType', - 'count' => 1, - 'path' => __DIR__ . '/../../tests/Test/TokensWithObservedTransformers.php', -]; $ignoreErrors[] = [ 'message' => '#^Property PhpCsFixer\\\\Tests\\\\TestCase\\:\\:\\$actualDeprecations \\(list\\\\) does not accept array\\, string\\>\\.$#', 'identifier' => 'assign.propertyType',