mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-08-21 19:32:04 +00:00
Added MessageStat & Attachments
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user