Skip to content

Commit 2b6c89a

Browse files
Use CPP where possible
1 parent 2e987ed commit 2b6c89a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Exception/HttpExceptionTrait.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
*/
2121
trait HttpExceptionTrait
2222
{
23-
private ResponseInterface $response;
24-
25-
public function __construct(ResponseInterface $response)
26-
{
27-
$this->response = $response;
23+
public function __construct(
24+
private ResponseInterface $response,
25+
) {
2826
$code = $response->getInfo('http_code');
2927
$url = $response->getInfo('url');
3028
$message = \sprintf('HTTP %d returned for "%s".', $code, $url);

0 commit comments

Comments
 (0)