Skip to content

Error in generated Entity Proxy class #751

Closed
@compains

Description

@compains

I have started to get errors after updating deployed aplication.

Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) on /app/cache/prod/doctrine/orm/Proxies/__CG__AppBundleEntityEntityName.php

Original method

someMethod( ClassName $inputParam)
generated proxy

someMethod ( ? \Full\NamespacePath\ClassName $inputParam)
I just deleted the ? in the generated code and is working again.

Just to be sure, I re-deployed the app and I got the same issue.

Its running on Php 7.0.8. Deployed version of doctrine common is 2.7.0 (actually this started to happen after update from 2.6.1 to 2.7.0 doctrine/dbal from 2.5.5 to 2.4.5 (don't know why composer has downgraded this package)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions