From 5373a51ef47ba5a9175c474aea66a1c03d2088c1 Mon Sep 17 00:00:00 2001 From: Ying-Shan Lin Date: Mon, 17 Jul 2023 16:12:28 +0800 Subject: [PATCH] Update Request.php --- src/AWS/CRT/HTTP/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AWS/CRT/HTTP/Request.php b/src/AWS/CRT/HTTP/Request.php index 9b4f07c..bec4ac1 100644 --- a/src/AWS/CRT/HTTP/Request.php +++ b/src/AWS/CRT/HTTP/Request.php @@ -13,7 +13,7 @@ class Request extends Message { public function __construct($method, $path, $query = [], $headers = [], $body_stream = null) { parent::__construct($method, $path, $query, $headers); if (!is_null($body_stream) && !($body_stream instanceof InputStream)) { - throw InvalidArgumentException('body_stream must be an instance of ' . InputStream::class); + throw new \InvalidArgumentException('body_stream must be an instance of ' . InputStream::class); } $this->body_stream = $body_stream; }