Closed svycka closed 3 years ago
Same for me. I tried using it in a laminas-mvc
application.
Additionally , when trying a composer update
with composer 1, I get an AssertionError
:
PHP Fatal error: Uncaught AssertionError: assert($rewriter instanceof DependencySolvingCapableInterface) in [path-to-project]/vendor/laminas/laminas-dependency-plugin/src/DependencyRewriterPluginDelegator.php:68
Stack trace:
#0 [path-to-project]/vendor/laminas/laminas-dependency-plugin/src/DependencyRewriterPluginDelegator.php(68): assert(false, 'assert($rewrite...')
#1 [internal function]: Laminas\DependencyPlugin\DependencyRewriterPluginDelegator->onPreDependenciesSolving(Object(Composer\Installer\InstallerEvent))
#2 phar:///usr/local/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php(164): call_user_func(Array, Object(Composer\Installer\InstallerEvent))
#3 phar:///usr/local/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php(135): Composer\EventDispatcher\EventDispatcher->doDispatch(Object(Composer\Installer\InstallerEvent))
#4 phar:///usr/local/bin/composer.phar/src/Composer/Installer.php(486): Composer\EventDispatcher\EventDispatcher->dispatchInstallerEvent('pre- in [path-to-project]/vendor/laminas/laminas-dependency-plugin/src/DependencyRewriterPluginDelegator.php on line 68
it's strange but maybe laminas/laminas-component-installer
is the cause of this. when removing laminas/laminas-dependency-plugin
still throws but when I remove laminas/laminas-component-installer
error gone.
maybe move the issue to laminas/laminas-component-installer
?
okay works with laminas/laminas-component-installer
<= 2.3.0 and does not work with 2.3.1 so definitely laminas/laminas-component-installer
problem I think :thinking:
okay works with
laminas/laminas-component-installer
<= 2.3.0 and does not work with 2.3.1 so definitelylaminas/laminas-component-installer
problem I think 🤔
Thanks for investigating! Do you open an issue in the laminas-component-installer
package?
Bug Report
Summary
composer check throws LogicException
Current behavior
or
I am not sure it is a
composer
bug orlaminas-dependency-plugin