mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Fix Rest's ConfigProvider test
This commit is contained in:
@@ -12,7 +12,7 @@ enum DeviceType: string
|
||||
|
||||
public static function matchFromUserAgent(string $userAgent): ?self
|
||||
{
|
||||
$detect = new MobileDetect(userAgent: $userAgent); // @phpstan-ignore-line
|
||||
$detect = new MobileDetect(userAgent: $userAgent);
|
||||
|
||||
return match (true) {
|
||||
// $detect->is('iOS') && $detect->isTablet() => self::IOS, // TODO To detect iPad only
|
||||
|
||||
Reference in New Issue
Block a user