modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-05-17 12:36:38 +04:00
parent 096bfe91f8
commit 52700ee53b
1 changed files with 2 additions and 2 deletions

View File

@ -290,7 +290,7 @@ class Stream extends AbstractIterator implements IReader, IWriter {
}
function unserialize(?array $options=null, bool $close=true, bool $alreadyLocked=false) {
$args = [$this->getContents($alreadyLocked)];
$args = [$this->getContents($close, $alreadyLocked)];
if ($options !== null) $args[] = $options;
return unserialize(...$args);
}
@ -412,6 +412,6 @@ class Stream extends AbstractIterator implements IReader, IWriter {
}
function serialize($object, bool $close=true, bool $alreadyLocked=false): void {
$this->putContents(serialize($object), $alreadyLocked);
$this->putContents(serialize($object), $close, $alreadyLocked);
}
}