These objects can contain an additionalData value which is NULL. This leads to an error with the strict data types, since unserialize expects a string.
See #2534
// handle condition data
if ($data['additionalData'] !== null) {
- $this->data['additionalData'] = @unserialize($data['additionalData']);
+ $this->data['additionalData'] = @unserialize($data['additionalData'] ?: '');
}
if (!is_array($this->data['additionalData'])) {
$this->data['additionalData'] = [];
protected function handleData($data) {
parent::handleData($data);
- $this->data['additionalData'] = @unserialize($this->data['additionalData']);
+ $this->data['additionalData'] = @unserialize($this->data['additionalData'] ?: '');
if (!is_array($this->data['additionalData'])) {
$this->data['additionalData'] = [];
}