From bd9fb50642a80e0c691710973f9d4efafceb9882 Mon Sep 17 00:00:00 2001 From: Andy Fragen Date: Sat, 21 Dec 2024 11:19:19 -0800 Subject: [PATCH] compose update --- vendor/composer/InstalledVersions.php | 11 +++++++---- vendor/composer/installed.php | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/vendor/composer/InstalledVersions.php b/vendor/composer/InstalledVersions.php index 51e734a77..07b32ed6e 100644 --- a/vendor/composer/InstalledVersions.php +++ b/vendor/composer/InstalledVersions.php @@ -322,6 +322,7 @@ private static function getInstalled() } $installed = array(); + $copiedLocalDir = false; if (self::$canGetVendors) { foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { @@ -330,9 +331,11 @@ private static function getInstalled() } elseif (is_file($vendorDir.'/composer/installed.php')) { /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ $required = require $vendorDir.'/composer/installed.php'; - $installed[] = self::$installedByVendor[$vendorDir] = $required; - if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { - self::$installed = $installed[count($installed) - 1]; + self::$installedByVendor[$vendorDir] = $required; + $installed[] = $required; + if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { + self::$installed = $required; + $copiedLocalDir = true; } } } @@ -350,7 +353,7 @@ private static function getInstalled() } } - if (self::$installed !== array()) { + if (self::$installed !== array() && !$copiedLocalDir) { $installed[] = self::$installed; } diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index b4fb02037..db54c9831 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'afragen/git-updater', 'pretty_version' => 'dev-develop', 'version' => 'dev-develop', - 'reference' => '6eda2c2cf8a9835f4de395f8c338be67a61de9f1', + 'reference' => '9a1c0556323a008c908ef4d009a075214b33189b', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ 'afragen/git-updater' => array( 'pretty_version' => 'dev-develop', 'version' => 'dev-develop', - 'reference' => '6eda2c2cf8a9835f4de395f8c338be67a61de9f1', + 'reference' => '9a1c0556323a008c908ef4d009a075214b33189b', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),