Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit be1925f

Browse files
authored
fix deprecation message (#46)
Fix: Deprecated: Using ${expr} (variable variables) in strings is deprecated
1 parent efcc8e7 commit be1925f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Unleash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function isFeatureEnabled(string $name, ...$args): bool
9292
}
9393

9494
if (!$strategy instanceof Strategy && !$strategy instanceof DynamicStrategy) {
95-
throw new \Exception("${$className} does not implement base Strategy/DynamicStrategy.");
95+
throw new \Exception($className . ' does not implement base Strategy/DynamicStrategy.');
9696
}
9797

9898
$params = Arr::get($strategyData, 'parameters', []);

0 commit comments

Comments
 (0)