From 20696d19dadf88c4ec02d8b2afe213e729f9518c Mon Sep 17 00:00:00 2001 From: kevin olson Date: Fri, 6 May 2022 21:13:08 -0500 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20lets=20hold=20off=20on=20A?= =?UTF-8?q?rrayShape=20in=20a=20package=20for=20jnow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Guards/HumbleGuard.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Guards/HumbleGuard.php b/src/Guards/HumbleGuard.php index 21b9f60..2938554 100644 --- a/src/Guards/HumbleGuard.php +++ b/src/Guards/HumbleGuard.php @@ -3,7 +3,6 @@ namespace acidjazz\Humble\Guards; use Exception; -use JetBrains\PhpStorm\ArrayShape; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; use WhichBrowser; @@ -147,14 +146,7 @@ public function geoip(): array return $loc; } - #[ArrayShape([ - 'string' => "string", - 'platform' => "string", - 'browser' => "string", - 'name' => "string", - 'desktop' => "bool", - 'mobile' => "bool" - ])] public static function device($userAgent = null): array + public static function device($userAgent = null): array { if ($userAgent !== null) { $agent = new WhichBrowser\Parser($userAgent);