You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no errors thrown during the above deserialisation. However, the attribute critId in Crit is null. When the name of critId is changed to something without the Id suffix, it works.
This is the first time I'm reporting a bug, so please let me know if I've missed something.
Thanks
The text was updated successfully, but these errors were encountered:
-- UPDATE
It seems that any variable that is camelCased is not deserialised.
-- Original post
Scenario:
Json to be deserialized:
{
"critId" : "hello"
}
PHP class:
class Crit
{
/** @type("string") */
$critId;
}
There are no errors thrown during the above deserialisation. However, the attribute critId in Crit is null. When the name of critId is changed to something without the Id suffix, it works.
This is the first time I'm reporting a bug, so please let me know if I've missed something.
Thanks
The text was updated successfully, but these errors were encountered: