-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1295 add array as type in DataModel properties #2488
1295 add array as type in DataModel properties #2488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cast is unnecessary for the array, see how it works for the type string
/**
* Getter for Foo.
*
* @return array|null
*/
public function getFoo(): ?array
{
return $this->getData(self::FOO) === null ? null
: (array)$this->getData(self::FOO);
}
also please update the Changelog.md with the changes
@VitaliyBoyko I made changes. Please check. |
Description (*)

This PR adds an array as a type in DataModel properties
Fixed Issues (if relevant)
Questions or comments
Contribution checklist (*)