preserve-paths
preserve-paths copied to clipboard
Handle null paths
A sticking plaster for the error in #43
Can we boost this fix?
The only way I can get composer install
working on my project is to roll back composer to 2.5.5 or use this fork.
I've hit this too.. +1 for merging the PR please
Please merge this and release this asap! PHP8 upgrade is stuck because of this error.
Please merge this PR and create an official release. +1
Same thing for me. +1 for mergin PR.
Same for me, +1 for merge this PR.
Null paths can be and probably should be handled at the source: \DrupalComposer\PreservePaths\PluginWrapper::getInstallPathsFromPackages()
diff --git a/src/PluginWrapper.php b/src/PluginWrapper.php
--- a/src/PluginWrapper.php
+++ b/src/PluginWrapper.php (date 1710258587092)
@@ -136,6 +136,8 @@
$paths[] = $installationManager->getInstallPath($package);
}
+ $paths = array_filter($paths);
+
return $this->absolutePaths($paths);
}