Logger not forwarded to own ErrorHandlingMiddleware
Author: GonozalIXCreated Apr 16, 2020Updated Aug 3, 2022
LabelsbugSlim 5
As written in documentaton the customErrorHandler should receive the logger of the ErrorMiddleware as 6th parameter.
But unfortunately the customErrorHandler always receives null. This can be reproduced by just copying the code from the documentation.
Did some research and it seems the logger is not correctly submitted to the handler in the line below.
I've added $this->logger locally on my server and now my customErrorHandler gets the logger as intended.
I'm not aware of side effects this could have so created an issue here and no pull request.
Best.
Source: slimphp/Slim