Skip to content

Commit

Permalink
Merge pull request #201 from pantheon-systems/issue-3477364
Browse files Browse the repository at this point in the history
#3477364 - PHP 8.2+ - Deprecated string interpolation issue
  • Loading branch information
stovak authored Jan 7, 2025
2 parents c7a159b + e39dd95 commit 1b68013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -148,7 +148,7 @@ protected function getCurrentConstraint(): string {
$branch_parts = explode('/', $branch);
$branch = end($branch_parts);
if ($branch) {
return "${branch}-dev";
return "{$branch}-dev";
}
}
}
Expand Down

0 comments on commit 1b68013

Please sign in to comment.