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

More coercive code #32

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

vicary
Copy link

@vicary vicary commented Feb 27, 2017

  1. Use property_exists for object checking
  2. Coercive type hinting (object) $this->data for array value in object schema type, and (array) $this->data for array schema type.
  3. Coerce scalar values into string.

Vicary Archangel and others added 4 commits November 8, 2016 16:18
1. Use `property_exists` for object checking
2. Coercive type hinting `(object) $this->data` for array value in object schema type, and `(array) $this->data` for array schema type.
@vicary vicary changed the title Coerce array to objects More coercive code Feb 28, 2017
is_scalar() means most, if not all, values are convertible into strings.
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.

1 participant