mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
storedObject: allow for null data in storedObject
This commit is contained in:
@@ -149,37 +149,37 @@ class StoredObject implements AsyncFileInterface, Document
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setDatas(array $datas)
|
||||
public function setDatas(?array $datas)
|
||||
{
|
||||
$this->datas = $datas;
|
||||
$this->datas = (array) $datas;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setFilename($filename)
|
||||
public function setFilename(?string $filename)
|
||||
{
|
||||
$this->filename = $filename;
|
||||
$this->filename = (string) $filename;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setIv($iv)
|
||||
public function setIv(?array $iv)
|
||||
{
|
||||
$this->iv = $iv;
|
||||
$this->iv = (array) $iv;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setKeyInfos($keyInfos)
|
||||
public function setKeyInfos(?array $keyInfos)
|
||||
{
|
||||
$this->keyInfos = $keyInfos;
|
||||
$this->keyInfos = (array) $keyInfos;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setType($type)
|
||||
public function setType(?string $type)
|
||||
{
|
||||
$this->type = $type;
|
||||
$this->type = (string) $type;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user