Cast float to int to avoid invalid scalar argument warning

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-08-18 16:56:36 +02:00
parent 92b67409fa
commit 560ccf5d83
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
2 changed files with 1 additions and 6 deletions

View File

@ -4836,11 +4836,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>

View File

@ -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();