for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wandu\Http\Exception;
use Psr\Http\Message\ResponseInterface;
use Wandu\Http\Psr\Response;
class InternalServerErrorException extends HttpException
{
/**
* @param \Psr\Http\Message\ResponseInterface $response
* @param array $attributes
*/
public function __construct(
ResponseInterface $response = null,
array $attributes = []
) {
$response = $response ?: new Response();
parent::__construct($response->withStatus(500), $attributes);
}