Laminas Stratigility v1.2.0 Release Notes
Release Date: 2016-03-17 // over 7 years ago-
๐ This release contains two potential backwards compatibility breaks:
In versions prior to 1.2.0, after
Laminas\Stratigility\Http\Response::end()
was called,with*()
operations were performed as no-ops, which led to hard-to-detect errors. Starting with 1.2.0, they now raise aRuntimeException
.In versions prior to 1.2.0,
Laminas\Stratigility\FinalHandler
always provided exception details in the response payload for errors. Starting with 1.2.0, it only does so if not in a production environment (which is the default environment).
โ Added
- zendframework/zend-stratigility#36 adds a new
InvalidMiddlewareException
, with the static factoryfromValue()
that provides an exception message detailing the invalid type.MiddlewarePipe
now throws this exception from thepipe()
method when a non-callable value is provided. - zendframework/zend-stratigility#46 adds
FinalHandler::setOriginalResponse()
, allowing you to alter the response used for comparisons when theFinalHandler
is invoked. - zendframework/zend-stratigility#37 and
zendframework/zend-stratigility#49 add
support in
Laminas\Stratigility\Dispatch
to catch PHP 7Throwable
s.
๐ Deprecated
- Nothing.
โ Removed
- Nothing.
๐ Fixed
- โก๏ธ zendframework/zend-stratigility#30 updates the
Response
implementation to raise exceptions fromwith*()
methods if they are called afterend()
. - ๐ zendframework/zend-stratigility#46 fixes the
behavior of
FinalHandler::handleError()
to only display exception details when not in production environments, and changes the default environment to production.