From be1925f74303f79e59fb2c99c7f52bb1a7013193 Mon Sep 17 00:00:00 2001 From: Jimbolino Date: Thu, 10 Aug 2023 11:45:13 +0200 Subject: [PATCH] fix deprecation message (#46) Fix: Deprecated: Using ${expr} (variable variables) in strings is deprecated --- src/Unleash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unleash.php b/src/Unleash.php index 3701775..d4ca2f6 100644 --- a/src/Unleash.php +++ b/src/Unleash.php @@ -92,7 +92,7 @@ public function isFeatureEnabled(string $name, ...$args): bool } if (!$strategy instanceof Strategy && !$strategy instanceof DynamicStrategy) { - throw new \Exception("${$className} does not implement base Strategy/DynamicStrategy."); + throw new \Exception($className . ' does not implement base Strategy/DynamicStrategy.'); } $params = Arr::get($strategyData, 'parameters', []);