Skip to content

Commit 4acdc31

Browse files
committed
unused namespace removed. JsonException added as previous exception for InvalidArdugentException in HttpFactoryTrait.
1 parent cfa8f66 commit 4acdc31

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/Endpoints/HttpFactoryTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function createRequest(string $method, string $uri, array $body = []):
4343
$this->getHttpFactory()->createStream(json_encode($body, JSON_THROW_ON_ERROR))
4444
);
4545
} catch (\JsonException $e) {
46-
throw new InvalidArgumentException('Json parse error!');
46+
throw new InvalidArgumentException('Json parse error!', $e->getCode(), $e);
4747
}
4848
}
4949

src/Qdrant.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
namespace Qdrant;
77

8-
use Psr\Http\Client\RequestExceptionInterface;
98
use Psr\Http\Message\RequestInterface;
109
use Qdrant\Endpoints\Cluster;
1110
use Qdrant\Endpoints\Collections;

0 commit comments

Comments
 (0)