From 774d625f20d822fdd3780cb8920f451d98129df1 Mon Sep 17 00:00:00 2001 From: Nicole Hummel Date: Mon, 23 Feb 2026 00:06:27 +0100 Subject: [PATCH 1/2] [BUGFIX] Remove obsolete basename removePrefixPath --- Classes/Composer/ComposerPackageManager.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Classes/Composer/ComposerPackageManager.php b/Classes/Composer/ComposerPackageManager.php index 7f0db5b5..6d07b442 100644 --- a/Classes/Composer/ComposerPackageManager.php +++ b/Classes/Composer/ComposerPackageManager.php @@ -655,7 +655,6 @@ private function removePrefixPaths(string $path): string rtrim($this->rootPackage()->getVendorDir(), '/') . '/', rtrim($this->rootPackage()->getWebDir(), '/') . '/', rtrim($this->getRootPath(), '/') . '/', - basename($this->getRootPath()) . '/', ]; foreach ($removePaths as $removePath) { if (str_starts_with($path, $removePath)) { From e5805187b7ec47fb3b79168bfed995d5e51487b5 Mon Sep 17 00:00:00 2001 From: Nicole Hummel Date: Mon, 23 Feb 2026 00:27:31 +0100 Subject: [PATCH 2/2] [BUGFIX] Prevent resolving existing package names --- Classes/Composer/ComposerPackageManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Composer/ComposerPackageManager.php b/Classes/Composer/ComposerPackageManager.php index 6d07b442..9d4e1a6a 100644 --- a/Classes/Composer/ComposerPackageManager.php +++ b/Classes/Composer/ComposerPackageManager.php @@ -101,7 +101,7 @@ public function getPackageInfoWithFallback(string $nameOrExtensionKeyOrPath): ?P */ public function getPackageInfo(string $name): ?PackageInfo { - return self::$packages[$this->resolvePackageName($name)] ?? null; + return self::$packages[$name] ?? self::$packages[$this->resolvePackageName($name)] ?? null; } /**