Class properties use camel case but because of a bug in the
setAttributes method, special attributes are being assigned
as snake case, e.g. $first_name becomes first_name, and thus,
it never gets used.
This bug makes the jsonSerialize method to always return phone,
first and last name as null.
This commit fixes it by properly transforming keys to camel
case.
Class properties use camel case but because of a bug in the
setAttributes
method, special attributes are being assigned as snake case, e.g.$first_name
becomesfirst_name
, and thus, it never gets used.This bug makes the
jsonSerialize
method to always return phone, first and last name asnull
.This commit fixes it by properly transforming keys to camel case.