php 7 - Update php version 7 on server its hows fatal error on symonfy2` -


request.critical: uncaught php exception symfony\component\debug\exception\fatalerrorexception: "compile error: cannot use symfony\component\validator\constraints\null null because 'null' special class name" @ /vol/vhost/utterprints.com/src/design/appbundle/controller/orderscontroller.php line 30 {"exception":"[object] (symfony\component\debug\exception\fatalerrorexception(code: 0): compile error: cannot use symfony\component\validator\constraints\null null because 'null' special class name @ /vol/vhost/utterprints.com/src/design/appbundle/controller/orderscontroller.php:30)"} []

in orderscontroller on line 30 validator component use.

use symfony\component\validator\constraints\null;

starting php 7.0 "null" keyword becomes reserved word in sense cannot used name of class, trait, interface nor part of namespace.

i see symfony has support php7 since august 2015, may need update symfony installation.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -