Doctrine2 Update Caused AnnotationRegistry registerLoader Error in Zend Framework 3

前端 未结 5 1463
无人及你
无人及你 2021-01-01 22:47

I\'m working on a CMS based on Zend Framework 3.0 to manage a DB I with Doctrine. What is my problem when managing packages with composer? Recently, I updated all the packag

5条回答
  •  心在旅途
    2021-01-01 23:22

    To avoid this kind of problems, a good practice is to set the composer config.platform setting:

    "config": {
        "platform": {
            "php": "7.0.23"
        }
     }
    

    This will tell composer to update packages but only to a version that still supports this PHP version. So typically, this version number will be the version of your production server.

提交回复
热议问题