Closed ThaDafinser closed 8 years ago
Instead of doing this
if ($this->isRealResult($deviceRaw->model, 'device', 'model') === true) { $device->setModel($deviceRaw->model); }
Do this and return null if it's not a valid value
null
$device->setModel($this->getRealResult($deviceRaw->model, 'device', 'model'));
There are some providers where the value is not always available - there we still need a isset() if check before that
isset()
https://github.com/ThaDafinser/UserAgentParser/pull/88
Instead of doing this
Do this and return
null
if it's not a valid valueThere are some providers where the value is not always available - there we still need a
isset()
if check before that