Closed moufmouf closed 8 years ago
The ErrorMiddleware (that is designed to work with Stratigility) needs to have 4 required parameters if we want it to be detected as an error middleware by Stratigility. Otherwise, it is detected as a normal middleware and breaks.
ErrorMiddleware
It is because of these lines of code:
https://github.com/zendframework/zend-stratigility/blob/61adbe76af9a3a1f5d2e5df7b5182daa0cf472d4/src/Dispatch.php#L61-L70
I simply removed the "= null" from the 4th parameter to make it required.
Thank you! I squash-merged it.
Will push a new release in a few seconds.
:+1:
The
ErrorMiddleware
(that is designed to work with Stratigility) needs to have 4 required parameters if we want it to be detected as an error middleware by Stratigility. Otherwise, it is detected as a normal middleware and breaks.It is because of these lines of code:
https://github.com/zendframework/zend-stratigility/blob/61adbe76af9a3a1f5d2e5df7b5182daa0cf472d4/src/Dispatch.php#L61-L70
I simply removed the "= null" from the 4th parameter to make it required.