mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix: Update ChillDocumentManager::getSize()
.
This commit is contained in:
parent
fb8b8b354f
commit
00259dae20
@ -190,7 +190,7 @@ final class ChillDocumentManager implements DocumentManagerInterface
|
||||
}
|
||||
|
||||
public function getSize(Document $document): int {
|
||||
return strlen(stream_get_contents($this->read($document)));
|
||||
return strlen($this->read($document)->getContents());
|
||||
}
|
||||
|
||||
public function read(Document $document): StreamInterface {
|
||||
|
Loading…
x
Reference in New Issue
Block a user