Skip to content

Commit 311a4a9

Browse files
author
Hunter Skrasek
committed
Update InternalHttpException to allow for any response object to be
passed into its constructor. Closes dingo#998.
1 parent be629e1 commit 311a4a9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/Exception/InternalHttpException.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,19 @@
33
namespace Dingo\Api\Exception;
44

55
use Exception;
6-
use Illuminate\Http\Response;
6+
use Symfony\Component\HttpFoundation\Response;
77
use Symfony\Component\HttpKernel\Exception\HttpException;
88

99
class InternalHttpException extends HttpException
1010
{
1111
/**
1212
* Create a new internal HTTP exception instance.
1313
*
14-
* @param \Illuminate\Http\Response $response
15-
* @param string $message
16-
* @param \Exception $previous
17-
* @param array $headers
18-
* @param int $code
19-
*
20-
* @return void
14+
* @param \Symfony\Component\HttpFoundation\Response $response
15+
* @param string $message
16+
* @param \Exception $previous
17+
* @param array $headers
18+
* @param int $code
2119
*/
2220
public function __construct(Response $response, $message = null, Exception $previous = null, array $headers = [], $code = 0)
2321
{

0 commit comments

Comments
 (0)