Skip to content

Commit

Permalink
improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Giehl authored and sgiehl committed Sep 2, 2019
1 parent cc45c16 commit 3f1594e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Parser/Client/Browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ protected function buildEngine(array $engineData, string $browserVersion): strin
$engineParser->setCache($this->getCache());
$engineParser->setUserAgent($this->userAgent);
$result = $engineParser->parse();
$engine = $result['engine'] ?: '';
$engine = $result['engine'] ?? '';
}

return $engine;
Expand All @@ -409,6 +409,6 @@ protected function buildEngineVersion(string $engine): string

$result = $engineVersionParser->parse();

return $result['version'] ?: '';
return $result['version'] ?? '';
}
}

0 comments on commit 3f1594e

Please sign in to comment.