Skip to content

Commit

Permalink
fix: Undefined function 'AWS\CRT\HTTP\InvalidArgumentException' (#102)
Browse files Browse the repository at this point in the history
Co-authored-by: Waqar Ahmed Khan <[email protected]>
  • Loading branch information
yslinear and waahm7 authored Jul 20, 2023
1 parent 99fb0da commit 2f1dc7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
runs-on: macos-${{ matrix.version }}
strategy:
matrix:
version: [10.15]
version: [13]
steps:
# Force PHP to 8.0
# Doing this because tests fail in PHP 8.1 (default on macos Github Runner as of Dec 2021)
Expand Down
2 changes: 1 addition & 1 deletion src/AWS/CRT/HTTP/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2f1dc7b

Please sign in to comment.