From 2cea69398583f41e82d17508144b7e866b5d7133 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 9 Mar 2026 08:17:06 +0000 Subject: [PATCH] Add support for phpdoc-parser ^1.2 alongside ^2.0 The DocblockParserFactory already handles both versions via a runtime class_exists(ParserConfig::class) check. This commit simply broadens the composer constraint to allow installations with either v1.2+ or v2.x. https://claude.ai/code/session_01YZZi4mYn7d99QqxoRTUyvn --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9a170170..35aafb46 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "ext-json": "*", "nikic/php-parser": "~5", "ondram/ci-detector": "^4.2", - "phpstan/phpdoc-parser": "^2.0", + "phpstan/phpdoc-parser": "^1.2|^2.0", "symfony/console": "^5.4|^6.0|^7.0|^8.0", "symfony/finder": "^5.4|^6.0|^7.0|^8.0", "webmozart/assert": "^1.12|^2.0"