thephpleague / json-guard

Validation of json-schema.org compliant schemas.
http://json-guard.thephpleague.com/
MIT License
175 stars 26 forks source link

Emphasize return type in documentation detail. #115

Closed aejnsn closed 7 years ago

aejnsn commented 7 years ago

I think this detail is easily overlooked by developers unfamiliar with the fact PHP's json_decode() function can return an object or array depending on the boolean argument passed in the second parameter. Making the return types bold in documentation somehow makes me feel better.

matt-allan commented 7 years ago

Thanks, this seems to trip a lot of people up.

aejnsn commented 7 years ago

@yuloh Next time I'm in AVL, I'll buy you a beer.