From fa204e5ec15be80a8818fbdd2fa213566989f44f Mon Sep 17 00:00:00 2001 From: Arman <407448+armanist@users.noreply.github.com> Date: Fri, 23 Oct 2026 17:51:59 +0400 Subject: [PATCH] [#596] Move symfony/console, var-dumper and var-exporter to the 6.4 LTS line PHP 8.1 is the minimum, so the 6.4 LTS line can be used. Symfony 6.4 types getHelper() as HelperInterface, which has no ask(), so CliCommand::confirm() says that the question helper is a QuestionHelper. symfony/var-dumper stays: nothing in the framework imports it, but applications may call its dump() and dd(). --- composer.json | 6 +++--- src/Console/CliCommand.php | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index c6da2a89..3780188e 100644 --- a/composer.json +++ b/composer.json @@ -34,9 +34,9 @@ "j4mie/paris": "^1.5", "firebase/php-jwt": "^6.0 || ^7.0", "gumlet/php-image-resize": "^2.0", - "symfony/var-dumper": "^5.4", - "symfony/var-exporter": "^5.2", - "symfony/console": "^5.4", + "symfony/var-dumper": "^6.4", + "symfony/var-exporter": "^6.4", + "symfony/console": "^6.4", "vlucas/phpdotenv": "^5.0", "dflydev/dot-access-data": "^3.0", "php-debugbar/php-debugbar": "^2.2", diff --git a/src/Console/CliCommand.php b/src/Console/CliCommand.php index 56af49f2..1658760c 100644 --- a/src/Console/CliCommand.php +++ b/src/Console/CliCommand.php @@ -12,6 +12,7 @@ use Symfony\Component\Console\Question\ConfirmationQuestion; use Symfony\Component\Console\Output\OutputInterface; +use Symfony\Component\Console\Helper\QuestionHelper; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; @@ -142,6 +143,7 @@ public function question(string $message): void */ public function confirm(string $message): bool { + /** @var QuestionHelper $helper */ $helper = $this->getHelper('question'); $question = new ConfirmationQuestion($message . ' [y/N] ', false);