Skip to content

Must be compatible with Psr\SimpleCache\CacheInterface::set(string $key, mixed $value, $ttl = null) #989

@alicolville

Description

@alicolville

Although I've got the latest Standalone code and using it within a WordPress plugin, one of my user's (on Hostinger) gets's the following:

[26-May-2025 14:52:55 UTC] PHP Fatal error: Declaration of Detection\Cache\Cache::set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool must be compatible with Psr\SimpleCache\CacheInterface::set(string $key, mixed $value, $ttl = null) in /includes/mobile-detect/src/Cache/Cache.php on line 47

I cannot reproduce it in any of my Docker environments (with varying PHP versions) or on my Krystal hosting.

Please help :)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions