Fix Rest's ConfigProvider test

This commit is contained in:
Alejandro Celaya
2023-10-20 09:42:48 +02:00
parent 41e322fd47
commit 5bde273d59
3 changed files with 3 additions and 2 deletions

View File

@@ -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