From fb3511ff100bafa9b851d27199da3baf454eac3f Mon Sep 17 00:00:00 2001 From: Jack Wilkinson <31214002+jaxwilko@users.noreply.github.com> Date: Fri, 13 Dec 2024 13:43:41 +0000 Subject: [PATCH] Report version hash on dev- branches --- src/Parser/InstallOutputParser.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Parser/InstallOutputParser.php b/src/Parser/InstallOutputParser.php index 7eaa560..b59696a 100644 --- a/src/Parser/InstallOutputParser.php +++ b/src/Parser/InstallOutputParser.php @@ -58,13 +58,7 @@ public function parse(array $output): array $action = strtolower($matches[1]); $package = $matches[2]; $version = trim($matches[6]); - if (strpos($version, ' ') !== false) { - $version = explode(' ', $version)[0]; - } $newVersion = isset($matches[8]) ? trim($matches[8]) : null; - if (isset($newVersion) && strpos($newVersion, ' ') !== false) { - $newVersion = explode(' ', $newVersion)[0]; - } if ($section === 'lock') { switch ($action) {