fix: Undefined function 'AWS\CRT\HTTP\InvalidArgumentException' (#102)

Co-authored-by: Waqar Ahmed Khan <[email protected]>
This commit is contained in:
Ying-Shan Lin
2023-07-20 09:49:55 -07:00
committed by GitHub
co-authored by Waqar Ahmed Khan
parent 99fb0daec7
commit 2f1dc7b7ed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
}