suppress warnings on static access
This commit is contained in:
@@ -70,6 +70,9 @@ class Guzzle implements Adapter
|
|||||||
return $this->request('delete', $uri, $data, $headers);
|
return $this->request('delete', $uri, $data, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @SuppressWarnings(PHPMD.StaticAccess)
|
||||||
|
*/
|
||||||
public function request(string $method, string $uri, array $data = [], array $headers = [])
|
public function request(string $method, string $uri, array $data = [], array $headers = [])
|
||||||
{
|
{
|
||||||
if (!in_array($method, ['get', 'post', 'put', 'patch', 'delete'])) {
|
if (!in_array($method, ['get', 'post', 'put', 'patch', 'delete'])) {
|
||||||
|
|||||||
@@ -6,6 +6,9 @@ use GuzzleHttp\Exception\RequestException;
|
|||||||
use GuzzleHttp\Psr7\Request;
|
use GuzzleHttp\Psr7\Request;
|
||||||
use GuzzleHttp\Psr7\Response;
|
use GuzzleHttp\Psr7\Response;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @SuppressWarnings(PHPMD.StaticAccess)
|
||||||
|
*/
|
||||||
class ResponseExceptionTest extends TestCase
|
class ResponseExceptionTest extends TestCase
|
||||||
{
|
{
|
||||||
public function testFromRequestExceptionNoResponse()
|
public function testFromRequestExceptionNoResponse()
|
||||||
|
|||||||
Reference in New Issue
Block a user