Cannot declare class Composer\Autoload\ComposerStaticInit, because the name is already in use

Cannot declare class Composer\Autoload\ComposerStaticInit6c9266e89aa536667bf36f59ad8e6e6b, because the name is already in use

composer 扩展laminas后打开项目 后这个错误,因为vendor/laminas/laminas-zendframework-bridge/src/autoload.php 提前加载,导致在执行vendor/composer/autoload_static.php重复

解决:

将vendor/laminas/laminas-zendframework-bridge/src/autoload.php 注销
Cannot declare class Composer\Autoload\ComposerStaticInit, because the name is already in use_第1张图片

你可能感兴趣的:(composer,php,开发语言)