phpsymfonycomposer-phpezplatform

error in update with composer in ezlatform 5.4


i'm using ezplatform 5.4 , and when i run composer update/install , it show me this error :

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

i don't find any response to get out from this error , and i hope some solution for that .

thank you in advance .


Solution

  • The distribution bundle required in the root composer.json must be updated. On the 5.4.x update instructions page for eZ Platform, you will see for version 5.4.2 that it must be bumped to ~3.0.

    Running the composer require command from this chapter may therefore fix your error, but it is hard to be 100% sure. Let me know.