Added infection to the build matrix

This commit is contained in:
Alejandro Celaya
2018-03-26 17:09:50 +02:00
parent d0df007812
commit f788d6872f
5 changed files with 35 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ class JsonErrorResponseGenerator implements ErrorResponseGeneratorInterface, Sta
* @return Response
* @throws \InvalidArgumentException
*/
public function __invoke($e, Request $request, Response $response)
public function __invoke(?\Throwable $e, Request $request, Response $response)
{
$status = $response->getStatusCode();
$responsePhrase = $status < 400 ? 'Internal Server Error' : $response->getReasonPhrase();