Skip to content
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

Entities #1283

Merged
merged 14 commits into from
Oct 3, 2018
Merged

Entities #1283

merged 14 commits into from
Oct 3, 2018

Conversation

lonnieezell
Copy link
Member

Adds JSON casting to Entities.

Fixes #1186

nowackipawel and others added 14 commits August 30, 2018 12:50
I've changed name which i proposed before (json-object -> json) cuz I use default parameter for json_decode($value, [$assoc = false]) in calling.
initially used in system/Entity.php
tl;dr; small improvements according to experience with using json, json-array casting in  implementation of my cms
formatting
extract code  for JSON casting (which was almost identical for "json" and "json-array") to castAsJson 
support for "string" and numeric casting: 0x322,    0272,    0b1010101, 1234e0,
removing force casting to object as "json"  (what was too much according to actual manual)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants