summaryrefslogtreecommitdiffstats
path: root/application/third_party
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2023-01-29 14:10:25 +0100
committerFlorian Pritz <bluewind@xinu.at>2023-01-29 14:10:25 +0100
commit93fbe8dccec7b14c024259f83543bde4a95be298 (patch)
tree883786b47f0246ec6e0fb85b8b72af703cfaa152 /application/third_party
parentc88be04f0ec35304be812d7f5379c4362008b730 (diff)
feat(PHP8.2): Fix deprecated string interpolation
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/third_party')
-rwxr-xr-xapplication/third_party/test-more-php/Test-More-OO.php4
-rwxr-xr-xapplication/third_party/test-more-php/Test-Simple-OO.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/application/third_party/test-more-php/Test-More-OO.php b/application/third_party/test-more-php/Test-More-OO.php
index 7ce9f9421..6020288bd 100755
--- a/application/third_party/test-more-php/Test-More-OO.php
+++ b/application/third_party/test-more-php/Test-More-OO.php
@@ -215,7 +215,7 @@ class TestMore extends TestSimple {
if ( is_int($this->NumberOfTests) ) {
$unrun = $this->NumberOfTests - (int)$this->TestsRun;
$plural = $unrun == 1 ? '' : 's';
- $unrunmsg = "# Looks like ${unrun} planned test${plural} never ran.\n";
+ $unrunmsg = "# Looks like {$unrun} planned test{$plural} never ran.\n";
}
$gasp = $this->LastFail . "\n"
@@ -268,7 +268,7 @@ class TestMore extends TestSimple {
$error = " Syntax check for '$module' failed";
}
} else {
- $error = " Cannot find ${type}d file '$module'";
+ $error = " Cannot find {$type}d file '$module'";
}
$pass = !$retval && $done;
diff --git a/application/third_party/test-more-php/Test-Simple-OO.php b/application/third_party/test-more-php/Test-Simple-OO.php
index 9bbe4aada..33fb643a9 100755
--- a/application/third_party/test-more-php/Test-Simple-OO.php
+++ b/application/third_party/test-more-php/Test-Simple-OO.php
@@ -103,7 +103,7 @@ class TestSimple {
$skipinfo = '';
if ($this->NumberOfTests === 'skip_all') $skipinfo = ' # '.$this->SkipAllReason;
- echo "1..${NumberOfTests}${skipinfo}\n";
+ echo "1..{$NumberOfTests}{$skipinfo}\n";
$this->NumberOfTests = $NumberOfTests;
return;