Skip to content

Commit

Permalink
fix carbon warning
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Dec 30, 2024
1 parent 7bb6186 commit 5f20468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CookiesConsent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
),
]
)
Expand Down

0 comments on commit 5f20468

Please sign in to comment.