modifs.mineures sans commentaires
This commit is contained in:
parent
096bfe91f8
commit
52700ee53b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue