diff --git a/index.php b/index.php index 05d5d552..d009177b 100644 --- a/index.php +++ b/index.php @@ -619,6 +619,9 @@ private function getDownloadURLs(): array { if (!$this->isAbleToDecompress($format)) { continue; } + + // If only one download URL exists, $urls is a string + $urls = (array)$urls; foreach ($urls as $url) { if (!is_string($url)) { continue; diff --git a/lib/Updater.php b/lib/Updater.php index e2030c68..625bca50 100644 --- a/lib/Updater.php +++ b/lib/Updater.php @@ -601,6 +601,9 @@ private function getDownloadURLs(): array { if (!$this->isAbleToDecompress($format)) { continue; } + + // If only one download URL exists, $urls is a string + $urls = (array)$urls; foreach ($urls as $url) { if (!is_string($url)) { continue; diff --git a/updater.phar b/updater.phar index 4afc934b..82d09440 100755 Binary files a/updater.phar and b/updater.phar differ diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index f2ad151d..41d08773 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -18,7 +18,7 @@ class ComposerStaticInit936ba63ded5d1b8248cdb4d5673af0ea ); public static $prefixLengthsPsr4 = array ( - 'S' => + 'S' => array ( 'Symfony\\Polyfill\\Php80\\' => 23, 'Symfony\\Polyfill\\Php73\\' => 23, @@ -30,66 +30,66 @@ class ComposerStaticInit936ba63ded5d1b8248cdb4d5673af0ea 'Symfony\\Component\\String\\' => 25, 'Symfony\\Component\\Console\\' => 26, ), - 'P' => + 'P' => array ( 'Psr\\Container\\' => 14, ), - 'N' => + 'N' => array ( 'NC\\Updater\\' => 11, ), - 'B' => + 'B' => array ( 'Bamarni\\Composer\\Bin\\' => 21, ), ); public static $prefixDirsPsr4 = array ( - 'Symfony\\Polyfill\\Php80\\' => + 'Symfony\\Polyfill\\Php80\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-php80', ), - 'Symfony\\Polyfill\\Php73\\' => + 'Symfony\\Polyfill\\Php73\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-php73', ), - 'Symfony\\Polyfill\\Mbstring\\' => + 'Symfony\\Polyfill\\Mbstring\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring', ), - 'Symfony\\Polyfill\\Intl\\Normalizer\\' => + 'Symfony\\Polyfill\\Intl\\Normalizer\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer', ), - 'Symfony\\Polyfill\\Intl\\Grapheme\\' => + 'Symfony\\Polyfill\\Intl\\Grapheme\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme', ), - 'Symfony\\Polyfill\\Ctype\\' => + 'Symfony\\Polyfill\\Ctype\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-ctype', ), - 'Symfony\\Contracts\\Service\\' => + 'Symfony\\Contracts\\Service\\' => array ( 0 => __DIR__ . '/..' . '/symfony/service-contracts', ), - 'Symfony\\Component\\String\\' => + 'Symfony\\Component\\String\\' => array ( 0 => __DIR__ . '/..' . '/symfony/string', ), - 'Symfony\\Component\\Console\\' => + 'Symfony\\Component\\Console\\' => array ( 0 => __DIR__ . '/..' . '/symfony/console', ), - 'Psr\\Container\\' => + 'Psr\\Container\\' => array ( 0 => __DIR__ . '/..' . '/psr/container/src', ), - 'NC\\Updater\\' => + 'NC\\Updater\\' => array ( 0 => __DIR__ . '/../..' . '/lib', ), - 'Bamarni\\Composer\\Bin\\' => + 'Bamarni\\Composer\\Bin\\' => array ( 0 => __DIR__ . '/..' . '/bamarni/composer-bin-plugin/src', ),