summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php b/vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php
index 3b7c446..2cb5ab6 100644
--- a/vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php
+++ b/vendor/aws/aws-sdk-php/src/Crypto/AesEncryptingStream.php
@@ -65,7 +65,7 @@ class AesEncryptingStream implements AesStreamInterface
return $this->cipherMethod->getCurrentIv();
}
- public function getSize()
+ public function getSize(): ?int
{
$plainTextSize = $this->stream->getSize();
@@ -79,12 +79,12 @@ class AesEncryptingStream 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->encryptBlock(
@@ -99,7 +99,7 @@ class AesEncryptingStream implements AesStreamInterface
return $data ? $data : '';
}
- public function seek($offset, $whence = SEEK_SET)
+ public function seek($offset, $whence = SEEK_SET): void
{
if ($whence === SEEK_CUR) {
$offset = $this->tell() + $offset;