Skip to content

Commit

Permalink
Always exclude laminas/laminas-zendframework-bridge:src/autoload.php, f…
Browse files Browse the repository at this point in the history
…ixes #10401
  • Loading branch information
Seldaek committed Dec 30, 2021
1 parent 2a731ef commit a2a8fa4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Composer/Plugin/PluginManager.php
Expand Up @@ -252,9 +252,10 @@ public function registerPackage(PackageInterface $package, $failOnMissingClasses
$classLoader->register(false);

foreach ($map['files'] as $fileIdentifier => $file) {
// exclude laminas/laminas-zendframework-bridge:src/autoload.php in versions <1.4.1 as it was broken on fresh installs
// see https://github.com/composer/composer/issues/10349 - this hack can be removed once <1.4.1 releases stop being installed
if ($fileIdentifier === '7e9bd612cc444b3eed788ebbe46263a0' && null !== $localRepo->findPackage('laminas/laminas-zendframework-bridge', '<1.4.1')) {
// exclude laminas/laminas-zendframework-bridge:src/autoload.php as it breaks Composer in some conditions
// see https://github.com/composer/composer/issues/10349 and https://github.com/composer/composer/issues/10401
// this hack can be removed once this deprecated package stop being installed
if ($fileIdentifier === '7e9bd612cc444b3eed788ebbe46263a0') {
continue;
}
\Composer\Autoload\composerRequire($fileIdentifier, $file);
Expand Down

0 comments on commit a2a8fa4

Please sign in to comment.