symfony: [BUG][DependencyInjection] Syntax error in var/cache/dev/appDevDebugContainer.php
Upon clearing the cache a fatal error is thrown:
Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR), expecting identifier (T_STRING) in [...]var/cache/dev/appDevDebugProjectContainer.php:7161
Here’s the corresponding line:
class VichUploaderBundleHandlerUploadHandler_000000003557d388000000006581de10da75941a549785cf26d7df71050c90e4 extends \\Vich\UploaderBundle\Handler\UploadHandler implements \\ProxyManager\Proxy\VirtualProxyInterface {
It’s obvious that the error is caused by the duplicate backslashes.
#9815 seems to be related, but #9816 does not fix this behaviour since it started after the most recent composer update
.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 8
- Comments: 16 (6 by maintainers)
Commits related to this issue
- Excluding `zendframework/zend-code` `3.0.3` from compatible dependencies Refs: * https://github.com/Ocramius/ProxyManager/issues/321 * https://github.com/zendframework/zend-code/pull/69 * https:/... — committed to Ocramius/ProxyManager by Ocramius 8 years ago
- Excluding `zendframework/zend-code` `3.0.3` from compatible dependencies Refs: * https://github.com/Ocramius/ProxyManager/issues/321 * https://github.com/zendframework/zend-code/pull/69 * https:/... — committed to Ocramius/ProxyManager by Ocramius 8 years ago
I think it’s the version 3.0.3 of zendframework/zend-code that cause the issue. I put the line “zendframework/zend-code”: “3.0.2” in my composer.json and everything works fine.
“require”: { “php”: “>=7.0”, “symfony/symfony”: “3.0.", “alcaeus/mongo-php-adapter”: “^1.0.0”, “ext-mongo”: "”, “doctrine/mongodb-odm”: “^1.1.0”, “doctrine/mongodb-odm-bundle”: “~3.0”, “symfony/swiftmailer-bundle”: “^2.3”, “symfony/monolog-bundle”: “^2.8”, “sensio/distribution-bundle”: “^5.0”, “sensio/framework-extra-bundle”: “^3.0.2”, “incenteev/composer-parameter-handler”: “^2.0”, “symfony/assetic-bundle”: “^2.7”, “friendsofsymfony/user-bundle”: “~2.0@dev”, “liip/imagine-bundle”: “^1.3”, “knplabs/knp-paginator-bundle”: “^2.5”, “vich/uploader-bundle”: “^1.0.1”, “jms/security-extra-bundle”: “dev-master”, “mobiledetect/mobiledetectlib”: “^2.8”, “mongodb/mongodb”: “^1.0.0”, “twig/extensions”: “^1.3”, “cocur/slugify”: “^2.1”, “jms/translation-bundle”: “dev-master”, “zendframework/zend-code”: “3.0.2” },
I have got this problem too.