Skip to content

Commit 1f468bd

Browse files
committed
fix: cast ttl configuration to integer in AttributeCacheService
1 parent 74dc4bd commit 1f468bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiVersioningServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function register(): void
3535

3636
return new AttributeCacheService(
3737
enabled: $config['enabled'] ?? true,
38-
ttl: $config['ttl'] ?? 3600
38+
ttl: (int) ($config['ttl'] ?? 3600)
3939
);
4040
});
4141

0 commit comments

Comments
 (0)