Added MessageStat & Attachments

This commit is contained in:
Alex
2025-08-04 18:48:51 +03:00
parent c5d55a5c0f
commit 728536f064
41 changed files with 1210 additions and 95 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ abstract readonly class AbstractModel
return $typeName::from($value);
}
if (is_subclass_of($typeName, self::class)) {
if (is_subclass_of($typeName, self::class) && is_array($value)) {
return $typeName::fromArray($value);
}