diff --git a/src/CookiesConsent.php b/src/CookiesConsent.php index e6270d1..ca426c0 100755 --- a/src/CookiesConsent.php +++ b/src/CookiesConsent.php @@ -101,15 +101,15 @@ public function registerEssentials(): static items: [ new CookieDefinition( name: $this->cookieName, - lifetime: CarbonInterval::minutes(config('cookies-consent.cookie.lifetime')) + lifetime: CarbonInterval::minutes((int) config('cookies-consent.cookie.lifetime')) ), new CookieDefinition( name: config('session.cookie'), - lifetime: CarbonInterval::minutes(config('session.lifetime')) + lifetime: CarbonInterval::minutes((int) config('session.lifetime')) ), new CookieDefinition( name: 'XSRF-TOKEN', - lifetime: CarbonInterval::minutes(config('session.lifetime')) + lifetime: CarbonInterval::minutes((int) config('session.lifetime')) ), ] )