在 ezlatform 5.4 中使用 composer 更新时出错

error in update with composer in ezlatform 5.4

我正在使用 ezplatform 5.4,当我 运行 composer update/install 时,它向我显示此错误:

[ErrorException]                                                                                     
 Declaration of 
 eZ\Bundle\EzPublishLegacyBundle\Composer\ScriptHandler::installAssets() 
should be compatible with 
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets
(Composer\Script\Event $event) 

我没有找到任何解决此错误的方法,我希望有一些解决方案。

提前谢谢你。

必须更新根 composer.json 中所需的分发包。在 eZ 平台的 5.4.x update instructions 页面上,您会看到版本 5.4.2 必须升级到 ~3.0。

运行 因此,本章中的 composer require 命令可能会修复您的错误,但很难 100% 确定。让我知道。