Orm: Cache problem with php 7.1 nullable types

Created on 15 Jan 2017  路  6Comments  路  Source: doctrine/orm

Doctrine cache generator doesn't report the nullable option : check the following print screen :

pasted_image_at_2017_01_15_10_45_pm

public function getPhone(): ?string

become

public function getPhone(): string

which is a problem.

Thanks for taking care of that, and thanks for the great job done with doctrine !

Bug Invalid

All 6 comments

Make sure that you re-generate the proxies once you upgraded to doctrine/common 2.7.*. This was already fixed ;-)

Hey, thanks for the answer. I use doctrine with symfony but I can't see a doctrine/common in my composer.json. Is it this that I should change ?

"doctrine/orm" : "^2.5"

Just run a composer update and check your composer.lock for the installed doctrine/common version.

I don't have anything updated for now, based on composer.lock I stick with "version": "v2.6.2".

I guess I just should wait.

Please do check the version you have installed, before reporting an issue ;-)

Yes sorry.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

doctrinebot picture doctrinebot  路  4Comments

dmaicher picture dmaicher  路  3Comments

neomerx picture neomerx  路  4Comments

doctrinebot picture doctrinebot  路  4Comments

weaverryan picture weaverryan  路  3Comments