Skip to content

Commit 1624b79

Browse files
feat(php 8.2): Update code to avoid Using (variable variables) in strings is deprecated error (BIS)
1 parent 0b3766d commit 1624b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbstractCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ private static function parseDurationToSeconds(string $duration): int
608608
$re = '/(-?)(?:(?:(\d+)h)?(\d+)m)?(\d+).\d+(m?)s/m';
609609
preg_match($re, $duration, $matches);
610610
if (!\count($matches)) {
611-
throw new BouncerException("Unable to parse the following duration: {$$duration}.");
611+
throw new BouncerException('Unable to parse the following duration: '. $duration);
612612
}
613613
$seconds = 0;
614614
if (isset($matches[2])) {

0 commit comments

Comments
 (0)