From 3a631ecacd9ef3deaddf3beaeba72e5bebdf5451 Mon Sep 17 00:00:00 2001 From: Nyholm Date: Fri, 12 Feb 2021 15:24:38 +0100 Subject: [PATCH] InMemoryAdapter must return the number of bytes --- src/InMemory/InMemoryFile.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/InMemory/InMemoryFile.php b/src/InMemory/InMemoryFile.php index 5dac723fc..871b67060 100644 --- a/src/InMemory/InMemoryFile.php +++ b/src/InMemory/InMemoryFile.php @@ -58,9 +58,7 @@ public function readStream() public function fileSize(): int { - return function_exists('mb_strlen') - ? mb_strlen($this->contents) - : strlen($this->contents); + return strlen($this->contents); } public function mimeType(): string