Closed mimmi20 closed 1 year ago
Type error is introduced by a BC breaking bugfix in composer released as 2.5.6.
\Composer\Installer\InstallationManager::getInstallPath()
return type is now nullable.
See https://github.com/composer/composer/pull/11455 and https://github.com/composer/composer/issues/11389
This might be more than just a type error. It looks like empty string return for install path was not properly handled before either. metapackages normally don't define extras so it went unnoticed.
@mimmi20 Thank you for the report. You will need to bump this component to v3 for this fix.
Bug Report
Summary
When using Composer 2.5.6 (see https://github.com/composer/composer/releases/tag/2.5.6) an TypeError occures when using MetaPackages like laminas/laminas-mvc-form
Current behavior
An TypeError is thrown
How to reproduce
add laminas/laminas-mvc-form and laminas/laminas-component-installer to the composer.json, then run composer install
Expected behavior
no TypeError