aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/psalm-baseline.xml5
-rw-r--r--lib/private/Files/Stream/Encryption.php2
2 files changed, 1 insertions, 6 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 65f4c994d28..3ee7c97930b 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -4849,11 +4849,6 @@
</InvalidReturnType>
</file>
<file src="lib/private/Files/Stream/Encryption.php">
- <InvalidScalarArgument occurrences="3">
- <code>$newFilePosition</code>
- <code>$newFilePosition</code>
- <code>$position</code>
- </InvalidScalarArgument>
<UndefinedInterfaceMethod occurrences="1">
<code>$cacheEntry</code>
</UndefinedInterfaceMethod>
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();