Minor Correction

This commit is contained in:
netkas 2024-10-04 21:12:24 -04:00
parent ce22cb4b0a
commit d386d1a553

View file

@ -60,8 +60,12 @@
*/
public static function fromArray(?array $data): ?ForceReply
{
$object = new self();
if($data === null)
{
return null;
}
$object = new self();
$object->force_reply = $data['force_reply'] ?? false;
$object->inline_field_placeholder = $data['inline_field_placeholder'] ?? null;
$object->selective = $data['selective'] ?? false;