Skip to content
Snippets Groups Projects

Issue #3382942: Eliminate dependencies on Composer Stager internals

Merged Ted Bowman requested to merge issue/automatic_updates-3382942:3382942-round-3 into 3.0.x
Files
4
@@ -31,21 +31,22 @@ final class StatusCheckEvent extends PreOperationStageEvent {
*
* @param \Drupal\package_manager\StageBase $stage
* The stage which fired this event.
* @param \PhpTuf\ComposerStager\API\Path\Value\PathListInterface|\Throwable $excludedPaths
* @param \PhpTuf\ComposerStager\API\Path\Value\PathListInterface|\Throwable $excluded_paths
* The list of paths to exclude or, if an error occurred while they were
* being collected, the throwable from that error. If this is a throwable,
* it will be converted to a validation error.
*/
public function __construct(StageBase $stage, PathListInterface|\Throwable $excludedPaths) {
public function __construct(StageBase $stage, PathListInterface|\Throwable $excluded_paths) {
parent::__construct($stage);
// If there was an error collecting the excluded paths, convert it to a
// validation error so we can still run status checks that don't need to
// examine the list of excluded paths.
if ($excludedPaths instanceof \Throwable) {
$this->addErrorFromThrowable($excludedPaths);
$this->excludedPaths = NULL;
if ($excluded_paths instanceof \Throwable) {
$this->addErrorFromThrowable($excluded_paths);
$excluded_paths = NULL;
}
$this->excludedPaths = $excluded_paths;
}
/**
Loading