diff options
Diffstat (limited to 'vendor/aws/aws-crt-php/src/AWS/CRT')
-rw-r--r-- | vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php | 2 | ||||
-rw-r--r-- | vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php b/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php index 9b4f07c..bec4ac1 100644 --- a/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/Request.php +++ b/vendor/aws/aws-crt-php/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; } diff --git a/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php b/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php index ae5fd46..6aef709 100644 --- a/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php +++ b/vendor/aws/aws-crt-php/src/AWS/CRT/IO/InputStream.php @@ -14,6 +14,7 @@ final class InputStream extends NativeResource { const SEEK_END = 2; public function __construct($stream) { + parent::__construct(); $this->stream = $stream; $options = self::$crt->input_stream_options_new(); // The stream implementation in native just converts the PHP stream into @@ -24,7 +25,7 @@ final class InputStream extends NativeResource { } public function __destruct() { - self::$crt->input_stream_release($this->release()); + $this->release(); parent::__destruct(); } |