Skip to content

Commit a9a3882

Browse files
author
JLTRY
committed
correct phpstan
1 parent 08b8a9e commit a9a3882

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Client.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Joomla\Http\Exception\UnexpectedResponseException;
1414
use Joomla\Http\Http;
1515
use Joomla\Http\HttpFactory;
16+
use Joomla\Http\Response;
1617
use Joomla\Input\Input;
1718
use Joomla\Uri\Uri;
1819

@@ -82,12 +83,12 @@ public function __construct($options = [], ?Http $http = null, ?Input $input = n
8283
/**
8384
* Tests if given response contains JSON header
8485
*
85-
* @param Response $response The response object
86+
* @param Response $response The response object
8687
*
8788
* @return boolean
8889
*
8990
*/
90-
private static function isJsonResponse($response)
91+
private static function isJsonResponse(Response $response)
9192
{
9293
foreach (['Content-Type', 'content-type'] as $type) {
9394
if (array_key_exists($type, $response->headers)) {

0 commit comments

Comments
 (0)