- allow the use of ralouphie/getallheaders version 3
- PHP 8 compatibility
- BREAKING:
json
now throwsJsonException
instead ofInvalidArgumentException
if the supplied argument cannot be properly represented as JSON. A polyfill has been added to support this pre PHP 7.3. - BREAKING: The constructors of
ServerRequest
andMiddlewareApplication
are now final because other methods are usingnew static
to call them. PhpTemplate
now closes its output buffering properly even when there is an exception when rendering the template.
- BREAKING:
nullable
no longer accepts the third parameter - use??
after thenullable
call to specify the default value when the value isNULL
such that it is evaluated only when it isNULL
.
ServerRequest
class
nullable
now accepts a parameter which is used as the return value when the value isNULL
- Request helpers - use the new
ServerRequest
wrapper class instead
ResponseSenderInterface
interfaceResponseSender
class- Unit tests
- BREAKING:
psr/http-factory
is now used instead of the deprecatedhttp-interop/http-factory
. - BREAKING:
ResponseFactoryExceptionHandler
now needs anResponseSenderInterface
to work.
- Initial release