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 Oct 28, 2019
1 parent cf1bdf7 commit b2d28d2
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 @@ -406,7 +406,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 @@ -423,6 +423,6 @@ protected function buildEngineVersion(string $engine): string

$result = $engineVersionParser->parse();

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

0 comments on commit b2d28d2

Please sign in to comment.