Minor Correction
This commit is contained in:
parent
ce22cb4b0a
commit
d386d1a553
1 changed files with 5 additions and 1 deletions
|
@ -60,8 +60,12 @@
|
||||||
*/
|
*/
|
||||||
public static function fromArray(?array $data): ?ForceReply
|
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->force_reply = $data['force_reply'] ?? false;
|
||||||
$object->inline_field_placeholder = $data['inline_field_placeholder'] ?? null;
|
$object->inline_field_placeholder = $data['inline_field_placeholder'] ?? null;
|
||||||
$object->selective = $data['selective'] ?? false;
|
$object->selective = $data['selective'] ?? false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue