Answer the question
In order to leave comments, you need to log in
Symfony2 Doctrine: How to resolve array parsing error?
Greetings! When transferring a site to a hosting and trying to clear the cache, php app/console cache:clear -env=prod
an error pops up
PHP Parse error: syntax error, unexpected '[' in /home/c/site.ru/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php on line 90
private $definitions = [];
, if you change the declaration to private $definitions = array();
that, no error occurs! php app/check.php
shows [OK] Your system is ready to run Symfony2 projects. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question