Skip to content

Commit

Permalink
InMemoryAdapter must return the number of bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored and frankdejonge committed Feb 12, 2021
1 parent 97b4776 commit 3a631ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/InMemory/InMemoryFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a631ec

Please sign in to comment.