From 5ace8e140771b06aea0368fd176ff3687bcaa5aa Mon Sep 17 00:00:00 2001 From: Farhad Safarov Date: Thu, 20 Jun 2024 18:04:35 +0300 Subject: [PATCH 1/2] [deps] psalm version (#350) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 9b77764..2136b4b 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "php": "^8.1", "ext-simplexml": "*", "symfony/framework-bundle": "^5.0 || ^6.0 || ^7.0", - "vimeo/psalm": "^5.24" + "vimeo/psalm": "^5.16" }, "require-dev": { "doctrine/annotations": "^1.8|^2", From 0f128f96819b47e45f2f412e2e5c78bc1082711d Mon Sep 17 00:00:00 2001 From: Johannes Date: Thu, 20 Jun 2024 17:11:27 +0200 Subject: [PATCH 2/2] [console] Add 'suggestedValues' Parameter fixes https://github.com/psalm/psalm-plugin-symfony/issues/232 --- src/Handler/ConsoleHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Handler/ConsoleHandler.php b/src/Handler/ConsoleHandler.php index def0894..7c01be8 100644 --- a/src/Handler/ConsoleHandler.php +++ b/src/Handler/ConsoleHandler.php @@ -237,7 +237,7 @@ private static function analyseOption(array $args, StatementsSource $statements_ */ private static function normalizeOptionParams(array $args): array { - return self::normalizeParams(['name', 'shortcut', 'mode', 'description', 'default'], $args); + return self::normalizeParams(['name', 'shortcut', 'mode', 'description', 'default', 'suggestedValues'], $args); } /** @@ -247,7 +247,7 @@ private static function normalizeOptionParams(array $args): array */ private static function normalizeArgumentParams(array $args): array { - return self::normalizeParams(['name', 'mode', 'description', 'default'], $args); + return self::normalizeParams(['name', 'mode', 'description', 'default', 'suggestedValues'], $args); } private static function normalizeParams(array $params, array $args): array