From be5c4d94b30db045bb1ec591f3caf9113ad27a89 Mon Sep 17 00:00:00 2001 From: Brian Foley Date: Sun, 25 Oct 2026 09:32:58 +0000 Subject: [PATCH] Upgrade to PHPStan 2.3.2 and remove unused param naming rule --- composer.json | 2 +- composer.lock | 10 +++++----- phpstan.neon | 6 ------ 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 0f2851bfa..263976d6d 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require-dev": { "friendsofphp/php-cs-fixer": "^3.57", "phpunit/phpunit": "^12.0", - "phpstan/phpstan": "^2.2" + "phpstan/phpstan": "^2.3" }, "replace": { "symfony/polyfill-ctype": "*", diff --git a/composer.lock b/composer.lock index 5b0aef4cb..bd15d6bdf 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": "ab09feba1f93ec5654cdcd7b48edb2d0", + "content-hash": "ae14f261c19ab5dca9d162216e4e3f2d", "packages": [ { "name": "erusev/parsedown", @@ -1451,11 +1451,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.3.1", + "version": "2.3.2", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/6155239b488e95d26d1ebd95c6b4bb294d7f09db", - "reference": "6155239b488e95d26d1ebd95c6b4bb294d7f09db", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/18bc23a0682f08591529377d271b5c4dfe9ed1dd", + "reference": "18bc23a0682f08591529377d271b5c4dfe9ed1dd", "shasum": "" }, "require": { @@ -1511,7 +1511,7 @@ "type": "github" } ], - "time": "2026-10-08T21:09:11+00:00" + "time": "2026-10-24T11:36:00+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/phpstan.neon b/phpstan.neon index b674af833..35dba7059 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -76,12 +76,6 @@ parameters: paths: - pinc/3rdparty/mediawiki/*.php - # Use $_foo as the naming convention for unused function params that - # we want to keep to satisfy some API. Silence PHPStan warnings when - # this happens. - - message: '#Function .* has an unused parameter \$_.*\.#' - - typeAliases: # TODO: data.y should be numeric list, but callers needs fixing GraphConfig: """