From e37769b72bc10a0a44654971d8fd65e032c78129 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Tue, 3 Nov 2026 18:00:43 +0000 Subject: [PATCH] Download PHPStan Pro from its 2.2.x branch PHPStan Pro 2.2.x applies the fixedErrorDiffs PHPStan sends, edits the baseline and ignoreErrors, and drops the Ignore Line wizard that --fix replaced. A downloaded 2.1.x PHAR is replaced right away because its branch differs. Amp-Thread-ID: https://ampcode.com/threads/T-01a1a198-fa57-7583-9394-63372a7e2fa8 --- src/Command/FixerApplication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/FixerApplication.php b/src/Command/FixerApplication.php index a98b7fa1d12..a28f2e18837 100644 --- a/src/Command/FixerApplication.php +++ b/src/Command/FixerApplication.php @@ -303,7 +303,7 @@ private function downloadPhar( ): void { $currentVersion = null; - $branch = '2.1.x'; + $branch = '2.2.x'; if (is_file($pharPath) && is_file($infoPath)) { /** @var array{version: string, date: string, branch?: string} $currentInfo */ $currentInfo = Json::decode(FileReader::read($infoPath), Json::FORCE_ARRAY);