Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Sep 9, 2024
1 parent 034ec39 commit aeac4cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Concerns/DetectsChromeVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ protected function installedChromeVersion(string $operatingSystem, $directory =
continue;
}

/** @var array{0: string, 1: string, 2: string, 3: string} $matches */

$semver = implode('.', [$matches[1], $matches[2], $matches[3]]);

return [
Expand Down Expand Up @@ -178,6 +180,8 @@ protected function installedChromeDriverVersion(string $operatingSystem, string
preg_match('/ChromeDriver\s(\d+)\.(\d+)\.(\d+)(\.\d+)?\s[\w\D]+/', $process->getOutput(), $matches);

if (isset($matches[1])) {
/** @var array{0: string, 1: string, 2: string, 3: string} $matches */

$semver = implode('.', [$matches[1], $matches[2], $matches[3]]);

return [
Expand Down

0 comments on commit aeac4cf

Please sign in to comment.