mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
fix: Undefined function 'AWS\CRT\HTTP\InvalidArgumentException' (#102)
Co-authored-by: Waqar Ahmed Khan <[email protected]>
This commit is contained in:
co-authored by
Waqar Ahmed Khan
parent
99fb0daec7
commit
2f1dc7b7ed
@@ -146,7 +146,7 @@ jobs:
|
|||||||
runs-on: macos-${{ matrix.version }}
|
runs-on: macos-${{ matrix.version }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [10.15]
|
version: [13]
|
||||||
steps:
|
steps:
|
||||||
# Force PHP to 8.0
|
# Force PHP to 8.0
|
||||||
# Doing this because tests fail in PHP 8.1 (default on macos Github Runner as of Dec 2021)
|
# Doing this because tests fail in PHP 8.1 (default on macos Github Runner as of Dec 2021)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class Request extends Message {
|
|||||||
public function __construct($method, $path, $query = [], $headers = [], $body_stream = null) {
|
public function __construct($method, $path, $query = [], $headers = [], $body_stream = null) {
|
||||||
parent::__construct($method, $path, $query, $headers);
|
parent::__construct($method, $path, $query, $headers);
|
||||||
if (!is_null($body_stream) && !($body_stream instanceof InputStream)) {
|
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;
|
$this->body_stream = $body_stream;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user