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
- [DependencyInjection] fixes #9815 Syntax error in PHP dumper — committed to realityking/symfony by realityking 11 years ago
- [DependencyInjection] fixes #9815 Syntax error in PHP dumper — committed to realityking/symfony by realityking 11 years ago
- [DependencyInjection] fixes #9815 Syntax error in PHP dumper — committed to realityking/symfony by realityking 11 years ago
- [DependencyInjection] fixes #9815 Syntax error in PHP dumper — committed to realityking/symfony by realityking 11 years ago
- bug #9816 [DependencyInjection] fixes #9815 Syntax error in PHP dumper (realityking) This PR was merged into the 2.5-dev branch. Discussion ---------- [DependencyInjection] fixes #9815 Syntax error... — committed to symfony/symfony by fabpot 11 years ago
- minor #10571 [Form] Fixed infinite tests when ICU is available (webmozart) This PR was submitted for the master branch but it was merged into the 2.4 branch instead (closes #10571). Discussion -----... — committed to symfony/symfony by fabpot 10 years ago
- Error generating class fqn Error: https://github.com/symfony/symfony/issues/9815 Tag: v3.0.3 PHP: 7.0.4 This should solve the issue with PR #69 @veewee check this out, please. I don't know i... — committed to kamilZ/zend-code by kamilZ 8 years ago
@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”