Skip to content

Commit

Permalink
♻️ lets hold off on ArrayShape in a package for jnow
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed May 7, 2022
1 parent 958dc7c commit 20696d1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Guards/HumbleGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace acidjazz\Humble\Guards;

use Exception;
use JetBrains\PhpStorm\ArrayShape;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use WhichBrowser;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 20696d1

Please # to comment.