Symfony fatal error
Unfortunately not every prod server can be upgraded that simply.
Recent Doctrine updates require PHP 7.1..
You can downgrade ORM to 2.5 and necessarily Annotations to 1.4:
"doctrine/orm": "2.5.6", "doctrine/annotations": "1.4.*", "doctrine/dbal": "2.5.4",
This way you can still use PHP 7.0.
What the problem fixed for me was, after upgrading to PHP 7.1, also enable PHP 7.1 for apache2 by
$ sudo a2enmod php7.1
I also had to disable PHP 7.0 for some reason:
$ sudo a2dismod php7.0
I solved this problem by updating my php from 7.0 to 7.1 , using the following commands:
sudo add-apt-repository ppa:ondrej/phpsudo apt-get updatesudo apt-get install php7.1-curl php7.1-xml php7.1-zip php7.1-gd php7.1-mysql php7.1-mbstring php7.1