Closed amireshoon closed 3 years ago
The problem with this assertion is that $exception->getCode()
might not be a valid http status code, hence why it is only set with the HttpException
on line 35. We know that those exceptions will return a valid status code while regular exceptions won't necessarily.
Added status code if an exception is not an instance of HttpExeception to trigger error and see deference that it makes throw an error.