ErrLookup › serbanghita/Mobile-Detect
serbanghita/Mobile-Detect
Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment. · PHP · 16 source files
Analyzed at 6ab7b0404d on 2026-08-21. 10 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Cache key must be a string. | exception | error | cache, psr-16, invalid-argument, type-error, php |
| Invalid key: '$key'. Must be alphanumeric, can contain _ and | exception | error | cache, psr-16, key-format, validation, php |
| TTL must be null, int, or DateInterval. | exception | error | cache, psr-16, ttl, invalid-argument, php |
| %s must be iterable. | exception | error | cache, psr-16, iterable, invalid-argument, php |
| No such method exists: $name | exception | error | magic-methods, bad-method-call, api-misuse, php, user-agent |
INVALID_USER_AGENT_ERR No valid user-agent has been set. | exception | error | user-agent, initialization, mobile-detect, fail-fast, php |
IS_MOBILE_ERR Cache problem in isMobile(): {$e->getMessage()} | exception | error | cache, psr-16, mobile-detect, wrapper-exception, php |
IS_TABLET_ERR Cache problem in isTablet(): {$e->getMessage()} | exception | error | cache, psr-16, tablet, wrapper-exception, php |
IS_MAGIC_ERR Cache problem in is(): {$e->getMessage()} | exception | error | cache, psr-16, magic-methods, wrapper-exception, php |
| cacheKeyFn is not a function. | exception | error | cache, configuration, callable, mobile-detect, php |