Erayd 48817e5f95 Add option to apply default values from the schema (#349)
* Add option to apply default values from the schema

* Clone default objects instead of passing by reference

Objects should always be assigned via clone, to prevent modifications
to the input object from also modifying the underlying schema.

* Run php-cs-fixer

* Remove two duplicate test cases
2017-02-21 21:28:16 -06:00
..