Closed DumbergerL closed 2 years ago
Code to fix it for GroupInformation-Model:
protected function fillNonArrayType(string $key, $value): void
{
switch ($key){
case "weekday":
$this->weekday = [$value];
break;
default:
$this->{$key} = $value;
}
}
Maybe one could use some more general approach and replace this whole $this->{$key} = $value
-approach with a call a trait method called fillModelDefault
where a check could be done it this is assignable. This could also handle #86
Property Weekday come sometimes in as array, and sometimes as non-array-type.
Stacktrace: