summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-19 22:08:15 +0200
committerGitHub <noreply@github.com>2020-08-19 22:08:15 +0200
commitd8bdb439a4ed31bc3d13d11fef6c046118867d08 (patch)
treea54704c69fbbe2952a2b9696810ae49ee4ace15e /lib
parentd3a53d6f3911bcb68cebbe661bc87a9cde594a8d (diff)
parent560ccf5d8320c2502c8499b1704d1b348b3a3fbd (diff)
downloadnextcloud-server-d8bdb439a4ed31bc3d13d11fef6c046118867d08.tar.gz
nextcloud-server-d8bdb439a4ed31bc3d13d11fef6c046118867d08.zip
Merge pull request #22289 from nextcloud/techdebt/noid/fix-encryption-stream-invalid-scalar-arguments
Cast float to int to avoid invalid scalar argument warning
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Stream/Encryption.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Stream/Encryption.php b/lib/private/Files/Stream/Encryption.php
index 1fc14daacbd..980be6d043e 100644
--- a/lib/private/Files/Stream/Encryption.php
+++ b/lib/private/Files/Stream/Encryption.php
@@ -416,7 +416,7 @@ class Encryption extends Wrapper {
return $return;
}
- $newFilePosition = floor($newPosition / $this->unencryptedBlockSize)
+ $newFilePosition = (int)floor($newPosition / $this->unencryptedBlockSize)
* $this->util->getBlockSize() + $this->headerSize;
$oldFilePosition = parent::stream_tell();