diff --git a/Classes/Composer/ComposerPackageManager.php b/Classes/Composer/ComposerPackageManager.php index 7f0db5b5..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; } /** @@ -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)) {