From ab7a6ea1777e5b2a3973ebfe35626555e48e3556 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev <98802205+shtiher-pp@users.noreply.github.com> Date: Sun, 25 Dec 2022 20:59:40 +0300 Subject: [PATCH] Fixed deprecated string syntax in Run command Fix deprecated messages when running tests: Deprecated: Using ${var} in strings is deprecated, use {$var} instead in ../vendor/codeception/codeception/src/Codeception/Command/Run.php on line 422 Deprecated: Using ${var} in strings is deprecated, use {$var} instead in ../vendor/codeception/codeception/src/Codeception/Command/Run.php on line 505 --- src/Codeception/Command/Run.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Codeception/Command/Run.php b/src/Codeception/Command/Run.php index d9da81d6d6..161451552d 100644 --- a/src/Codeception/Command/Run.php +++ b/src/Codeception/Command/Run.php @@ -419,7 +419,7 @@ public function execute(InputInterface $input, OutputInterface $output): int if ($this->options['shard']) { $this->output->writeln( - "[Shard ${userOptions['shard']}] Running subset of tests" + "[Shard {$userOptions['shard']}] Running subset of tests" ); } @@ -502,7 +502,7 @@ public function execute(InputInterface $input, OutputInterface $output): int if ($this->options['shard']) { $this->output->writeln( - "[Shard ${userOptions['shard']}] Merge this result with other shards to see the complete report" + "[Shard {$userOptions['shard']}] Merge this result with other shards to see the complete report" ); }