symfony: [BUG][DependencyInjection] Syntax error in PHP dumper

When creating the cache, a syntax error is still present since the issue #9807. The #9812 fix does not solve the problem.

Error:
PHP Parse error:  syntax error, unexpected '\' (T_NS_SEPARATOR), expecting identifier (T_STRING) in ./app/cache/dev/appDevDebugPr
ojectContainer.php

In my case, the line:

$g = \Doctrine\\ORM\\EntityManager::create($this->get('doctrine.dbal.default_connection'), $f);

should be formatted like this:

$g = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $f);

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 18 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@RaphaelSalique @entepe85 For a quick fix downgrade zend-code to 3.0.2 adding this line to your composer file: “zendframework/zend-code”: “3.0.2”