✨ Finishes Builders

This commit is contained in:
Shikiryu committed 2023-04-13 11:24:43 +02:00
1 parent a6a31e18e1
commit 317d9e37e8
7 files changed
+326 -32

No files matched your search

+5 -1
View File
@@ -126,7 +126,11 @@ class SRSS implements Iterator
throw new PropertyNotFoundException(Channel::class, $name);
}
if ((new Validator())->isValidValueForObjectProperty($this->channel, $name, $val)) {
$this->channel->{$name} = $val;
if (SRSSTools::getPropertyType(Channel::class, $name) === 'array') {
$this->channel->{$name}[] = $val;
} else {
$this->channel->{$name} = $val;
}
}
}