storedObject: allow for null data in storedObject

This commit is contained in:
nobohan 2022-04-26 11:53:17 +02:00
parent 5ae6c6397c
commit 3f47503528
2 changed files with 13 additions and 11 deletions

View File

@ -11,6 +11,8 @@ and this project adheres to
## Unreleased
<!-- write down unreleased development here -->
* [Documents] Validate storedObject and allow for null data (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/565)
* [Activity form] invert 'incoming' and 'receiving' in Activity form
* [Activity form] keep the same order for 'attendee' field in new and edit form
* [list with period] use "sameas" test operator to introduce requestor in list
@ -24,7 +26,7 @@ and this project adheres to
* [Accompanying period work evaluations] list documents associated to a work by creation date, and then by id, from the most recent to older
* [Course comment] add validationConstraint NotNull and NotBlank on comment content, to avoid sql error
* [Notifications] delay the sending of notificaiton to kernel.terminate
* [Notifications / Period user change] fix the sending of notification when user changes
* [Notifications / Period user change] fix the sending of notification when user changes
## Test releases

View File

@ -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;
}