Crell / ApiProblem

A simple implementation of the api-problem specification. Includes PSR-15 support.
MIT License
239 stars 21 forks source link

Adding ApiProblem::fromArray named constructor #30

Closed nyamsprod closed 4 years ago

nyamsprod commented 4 years ago

This PR is to resolve #24

It adds a ApiProblem::fromArray named constructor by wrapping the already existing protected method ApiProblem::decompile and make sure that it does not fails with array missing the required ApiProblem keys

Crell commented 4 years ago

Thanks! I was hoping someone would get to #24. :-)