From aeac4cf6556ed8fce3f25efdd42cbbe612ce9937 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 9 Sep 2024 18:07:53 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/Concerns/DetectsChromeVersion.php | 4 ++++ 1 file changed, 4 insertions(+) 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 [