summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php b/vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php
index c1524cc..feafc46 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/AesDecryptingStream.php
@@ -65,7 +65,7 @@ class AesDecryptingStream implements AesStreamInterface
return $this->cipherMethod->getCurrentIv();
}
- public function getSize()
+ public function getSize(): ?int
{
$plainTextSize = $this->stream->getSize();
@@ -80,12 +80,12 @@ class AesDecryptingStream implements AesStreamInterface
return $plainTextSize;
}
- public function isWritable()
+ public function isWritable(): bool
{
return false;
}
- public function read($length)
+ public function read($length): string
{
if ($length > strlen($this->buffer)) {
$this->buffer .= $this->decryptBlock(
@@ -101,7 +101,7 @@ class AesDecryptingStream implements AesStreamInterface
return $data ? $data : '';
}
- public function seek($offset, $whence = SEEK_SET)
+ public function seek($offset, $whence = SEEK_SET): void
{
if ($offset === 0 && $whence === SEEK_SET) {
$this->buffer = '';