Skip to content

Errors with status codes

Choose a tag to compare

@g105b g105b released this 09 Jul 17:57
d35835d

This release includes various dependency bumps, but there is a purposeful backwards incompatible change within JSONDocument that means this is a minor version increase rather than simply a patch release.

JSONDocument::error now requires a statusCode parameter as the second parameter, defaulting to 400. Apart from that, no more changes in this release.

What's Changed

  • build(deps): bump justinrainbow/json-schema from 6.8.0 to 6.8.1 by @dependabot[bot] in #75
  • build(deps): bump justinrainbow/json-schema from 6.8.1 to 6.8.2 by @dependabot[bot] in #76
  • build(deps-dev): bump phpstan/phpstan from 2.1.50 to 2.2.5 by @dependabot[bot] in #82
  • build(deps): bump justinrainbow/json-schema from 6.8.2 to 6.10.0 by @dependabot[bot] in #80
  • feature: pass status code into error function by @g105b in #84

Full Changelog: v2.2.1...v2.3.0