Skip to content

Commit 30903a9

Browse files
cuppettclaude
andcommitted
fix(encryption): Fix type error for unencryptedSize property
The Stream\Encryption::$unencryptedSize property was typed as ?int, but fixUnencryptedSize() returns int|float for large files. This caused TypeErrors when the verifyUnencryptedSize() fix triggered recalculation. Changed property type from ?int to int|float|null to match the return type of fixUnencryptedSize(). Fixes: - EncryptionMasterKeyUploadTest::testUploadOverWrite - EncryptionUploadTest::testUploadOverWrite 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 (1M context) <[email protected]> Signed-off-by: Stephen Cuppett <[email protected]>
1 parent 5cc61e4 commit 30903a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Files/Stream/Encryption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Encryption extends Wrapper {
2828
protected string $cache;
2929
protected ?int $size = null;
3030
protected int $position;
31-
protected ?int $unencryptedSize = null;
31+
protected int|float|null $unencryptedSize = null;
3232
protected int $headerSize;
3333
protected int $unencryptedBlockSize;
3434
protected array $header;

0 commit comments

Comments
 (0)