Closed weierophinney closed 7 years ago
@Ocramius Feedback incorporated; waiting for build, but should be ready for you to review.
@weierophinney awesome, thanks!
Note that this cannot be forward ported, as develop
has no Dispatch
class anymore.
Note that this cannot be forward ported, as develop has no Dispatch class anymore.
Yep - and hence the reason I could omit the TODO items. :smile: Should not affect merging from develop to master later.
Thanks for the review; I'll get a tag out shortly.
@weierophinney I'm currently tagging: want me to hold back?
Nope, go ahead, @Ocramius.
As reported in zendframework/zend-expressive#416, error middleware nested inside a
MiddlewarePipe
was not being dispatched. This was due to the fact thatDispatch
was identifying the pipeline as http-interop middleware, and thus dropping the$err
argument (as interop middleware cannot accept that argument).Theis patch updates
Dispatch
to check if the middleware is aMiddlewarePipe
and a non-null$err
is present; if so, it now dispatches it as callable middleware instead of as interop middleware.