Skip to content
Snippets Groups Projects

Issue #3368741: Drush build test symlinks drush and only passes because it loads classes not in build test project

Merged Issue #3368741: Drush build test symlinks drush and only passes because it loads classes not in build test project
3 unresolved threads
3 unresolved threads
@@ -438,12 +438,13 @@ END;
'autoload' => $package_info['autoload'] ?? [],
];
if (isset($package_info['require'])) {
foreach (array_keys($package_info['require']) as $package_name) {
// Do not require polyfill packages for PHP 7 or 8.
if (str_starts_with($package_name, 'symfony/polyfill-php7') || str_starts_with($package_name, 'symfony/polyfill-php8')) {
unset($package_info['require'][$package_name]);
}
}
unset(
$package_info['require']['symfony/polyfill-php72'],
$package_info['require']['symfony/polyfill-php73'],
$package_info['require']['symfony/polyfill-php74'],
$package_info['require']['symfony/polyfill-php80'],
$package_info['require']['symfony/polyfill-php81'],
);
$packages[$name][$version]['require'] = $package_info['require'];
}
// Composer plugins are loaded and activated as early as possible, and
@@ -451,7 +452,6 @@ END;
// with a dependency on `composer-plugin-api` (plus any other real
// runtime dependencies).
if ($packages[$name][$version]['type'] === 'composer-plugin') {
$packages[$name][$version]['require'] = $package_info['require'] ?? [];
$packages[$name][$version]['extra'] = $package_info['extra'] ?? [];
}
}
Loading