Skip to content

Commit

Permalink
Fix broken device detector naming
Browse files Browse the repository at this point in the history
  • Loading branch information
hisorange committed Nov 7, 2020
1 parent feaec4b commit a7137eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Stages/DeviceDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace hisorange\BrowserDetect\Stages;

use hisorange\BrowserDetect\Contracts\StageInterface;
use DeviceDetector\Parser\Device\DeviceParserAbstract;
use DeviceDetector\Parser\Device\AbstractDeviceParser;
use hisorange\BrowserDetect\Contracts\PayloadInterface;

/**
Expand Down Expand Up @@ -73,7 +73,7 @@ public function __invoke(PayloadInterface $payload): PayloadInterface
}

if (! empty($device['brand'])) {
$payload->setValue('deviceFamily', DeviceParserAbstract::getFullName($device['brand']));
$payload->setValue('deviceFamily', AbstractDeviceParser::getFullName($device['brand']));
}

if (! empty($device['model'])) {
Expand Down

0 comments on commit a7137eb

Please sign in to comment.