diff --git a/src/Concerns/DetectsChromeVersion.php b/src/Concerns/DetectsChromeVersion.php index 9c87473..877b380 100644 --- a/src/Concerns/DetectsChromeVersion.php +++ b/src/Concerns/DetectsChromeVersion.php @@ -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 [ @@ -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 [