diff --git a/src/UpdateCommand.php b/src/UpdateCommand.php index 5e6f5ed..7d27afa 100644 --- a/src/UpdateCommand.php +++ b/src/UpdateCommand.php @@ -304,7 +304,15 @@ protected function extract($version, $archive) $zip->extractTo($this->directory); - $binary = $zip->getNameIndex(version_compare($version, '115.0', '<') ? 0 : 1); + if (version_compare($version, '115.0', '<')) { + $index = 0; + } elseif (version_compare($version, '127.0', '<')) { + $index = 1; + } else { + $index = 2; + } + + $binary = $zip->getNameIndex($index); $zip->close();