From e39dd9521394c873c9d4d58f296989a6244e6666 Mon Sep 17 00:00:00 2001 From: coderkakarrot Date: Mon, 6 Jan 2025 17:56:39 +0530 Subject: [PATCH] #3477364 - PHP 8.2+ - Deprecated string interpolation issue Co-authored-by: Ross Bale --- RoboFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index 1fc32bba..b953004d 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -137,7 +137,7 @@ public function testFull(int $drupal_version = 9, string $site_name = NULL) { protected function getCurrentConstraint(): string { $branch = trim(shell_exec('git rev-parse --abbrev-ref HEAD')); if ($branch !== 'HEAD') { - return "${branch}-dev"; + return "{$branch}-dev"; } else { $tag = trim(shell_exec('git describe --exact-match --tags $(git log -n1 --pretty=\'%h\')')); if ($tag) { @@ -148,7 +148,7 @@ protected function getCurrentConstraint(): string { $branch_parts = explode('/', $branch); $branch = end($branch_parts); if ($branch) { - return "${branch}-dev"; + return "{$branch}-dev"; } } }