From a2efede4b9ce00f3970bf07957fce4919dde8791 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Fri, 7 Nov 2025 10:46:52 +0100 Subject: [PATCH] Run phpstan-deprecation-rules in issue-bot --- issue-bot/composer.json | 1 + issue-bot/composer.lock | 49 +++++++++++++++++++++++++++- issue-bot/src/Console/RunCommand.php | 1 + 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/issue-bot/composer.json b/issue-bot/composer.json index 490c8198aa..6b704b867a 100644 --- a/issue-bot/composer.json +++ b/issue-bot/composer.json @@ -7,6 +7,7 @@ "league/commonmark": "^2.3", "nette/neon": "^3.3", "nette/utils": "^3.2", + "phpstan/phpstan-deprecation-rules": "^2.0", "phpstan/phpstan-strict-rules": "^2.0", "symfony/console": "^6.1", "symfony/finder": "^6.1" diff --git a/issue-bot/composer.lock b/issue-bot/composer.lock index 926fdea72a..e2359c0242 100644 --- a/issue-bot/composer.lock +++ b/issue-bot/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": "e06c87ca3f68bf49a110ea6f8c61bfc5", + "content-hash": "4bb62f565dfbfe471988a5d5490ae3d5", "packages": [ { "name": "clue/stream-filter", @@ -1463,6 +1463,53 @@ ], "time": "2025-09-25T06:58:18+00:00" }, + { + "name": "phpstan/phpstan-deprecation-rules", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpstan-deprecation-rules.git", + "reference": "468e02c9176891cc901143da118f09dc9505fc2f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan-deprecation-rules/zipball/468e02c9176891cc901143da118f09dc9505fc2f", + "reference": "468e02c9176891cc901143da118f09dc9505fc2f", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.1.15" + }, + "require-dev": { + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6" + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "rules.neon" + ] + } + }, + "autoload": { + "psr-4": { + "PHPStan\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.", + "support": { + "issues": "https://github.com/phpstan/phpstan-deprecation-rules/issues", + "source": "https://github.com/phpstan/phpstan-deprecation-rules/tree/2.0.3" + }, + "time": "2025-05-14T10:56:57+00:00" + }, { "name": "phpstan/phpstan-strict-rules", "version": "2.0.7", diff --git a/issue-bot/src/Console/RunCommand.php b/issue-bot/src/Console/RunCommand.php index 763db57cd0..8027255fe5 100644 --- a/issue-bot/src/Console/RunCommand.php +++ b/issue-bot/src/Console/RunCommand.php @@ -73,6 +73,7 @@ private function analyseHash(OutputInterface $output, int $phpVersion, Playgroun { $configFiles = [ __DIR__ . '/../../playground.neon', + __DIR__ . '/../../vendor/phpstan/phpstan-deprecation-rules/rules.neon', ]; if ($result->isBleedingEdge()) { $configFiles[] = __DIR__ . '/../../../conf/bleedingEdge.neon';