mirror of
https://github.com/doctrine/reflection.git
synced 2026-03-24 08:42:07 +01:00
Bug when deserializing ?string 7.4-hinted properties. #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @signor-pedro on GitHub (Mar 23, 2020).
Hi, anyone seeing a weird bug after composer update today?
If my column in DB is a nullable string and set to null, Doctrine does not hydrate the property with null but “ignores” the property altogether, which results in
Typed property ... must not be accessed before initializationStarted happening today after composer update.
See element 0 of array - it is missing event property altogether.
It did not happen yesterday, yesterday it was hydrated normally
nullas you would expect.@beberlei
@marforon commented on GitHub (Mar 23, 2020):
I have the same issue, I believe it's related to this
cd4811c644.@beberlei commented on GitHub (Mar 23, 2020):
The property is declared as Nullable? Weird only non nullable properties should use the class, maybe i am wrong and its all typed classes, then we need to check for allowsnull
@signor-pedro commented on GitHub (Mar 23, 2020):
Yes, it is declared as nullable, for reference:
@ondrejmirtes commented on GitHub (Mar 25, 2020):
I agree, I have the same problem.
@beberlei commented on GitHub (Mar 27, 2020):
Fixed by #37