Skip to content

Commit dfbb2ed

Browse files
committed
fix: add missing use import for InvalidArgumentException
PHPMD MissingImport rule requires explicit use statements instead of fully-qualified class names.
1 parent d7fc209 commit dfbb2ed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Adapter/Guzzle.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Cloudflare\API\Auth\Auth;
66
use GuzzleHttp\Client;
77
use GuzzleHttp\Exception\RequestException;
8+
use InvalidArgumentException;
89
use Psr\Http\Message\ResponseInterface;
910

1011
class Guzzle implements Adapter
@@ -76,7 +77,7 @@ public function delete(string $uri, array $data = [], array $headers = []): Resp
7677
public function request(string $method, string $uri, array $data = [], array $headers = [])
7778
{
7879
if (!in_array($method, ['get', 'post', 'put', 'patch', 'delete'])) {
79-
throw new \InvalidArgumentException('Request method must be get, post, put, patch, or delete');
80+
throw new InvalidArgumentException('Request method must be get, post, put, patch, or delete');
8081
}
8182

8283
try {

0 commit comments

Comments
 (0)