diff --git a/CookieBanner.php b/CookieBanner.php index a22f094..fea2c89 100644 --- a/CookieBanner.php +++ b/CookieBanner.php @@ -29,7 +29,7 @@ public static function isFeatureAllowed(string $featureName): bool if (($cookie = self::getCookie()) === null) { return false; } - return str_contains($featureName, $cookie); + return str_contains($cookie, $featureName); } public static function allowedFeatures(): array