Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Version 3.0.3 breaks Symfony PHP Dependency Injection #74

Closed
entepe85 opened this issue Jun 28, 2016 · 5 comments
Closed

Version 3.0.3 breaks Symfony PHP Dependency Injection #74

entepe85 opened this issue Jun 28, 2016 · 5 comments

Comments

@entepe85
Copy link

After updating zend-code to version 3.0.3 through composer update the following error is thrown upon clearing the Symfony cache:

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 of code:
class VichUploaderBundleHandlerUploadHandler_000000003557d388000000006581de10da75941a549785cf26d7df71050c90e4 extends \\Vich\UploaderBundle\Handler\UploadHandler implements \\ProxyManager\Proxy\VirtualProxyInterface {

Reverting zend-code back to 3.0.2 through composer.json fixes the above issue.

@entepe85
Copy link
Author

See #19201.

@qRoC
Copy link
Contributor

qRoC commented Jun 28, 2016

#75

@Najki
Copy link

Najki commented Jun 28, 2016

You can try this in your composer.json while waiting for the fix to be released (hopefully in 3.0.4)
"zendframework/zend-code": "~3.0.2, !=3.0.3"

@kdambekalns
Copy link

also see Ocramius/ProxyManager#321

@Ocramius
Copy link
Member

Thanks @weierophinney, @qRoC and @entepe85!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants