Fix incorrect timeout in init commands

This commit is contained in:
Alejandro Celaya
2023-06-15 18:53:42 +02:00
parent 61686ed6ea
commit cdf5082cff
5 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ enum DeviceType: string
public static function matchFromUserAgent(string $userAgent): ?self
{
$detect = new MobileDetect(null, $userAgent); // @phpstan-ignore-line
$detect = new MobileDetect(userAgent: $userAgent); // @phpstan-ignore-line
return match (true) {
// $detect->is('iOS') && $detect->isTablet() => self::IOS, // TODO To detect iPad only