Make Chat type nullable and default is_forum to false
This commit is contained in:
parent
7b32ae835e
commit
b3d26446e6
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
||||||
class Chat implements ObjectTypeInterface
|
class Chat implements ObjectTypeInterface
|
||||||
{
|
{
|
||||||
private int $id;
|
private int $id;
|
||||||
private ChatType $type;
|
private ?ChatType $type;
|
||||||
private ?string $title;
|
private ?string $title;
|
||||||
private ?string $username;
|
private ?string $username;
|
||||||
private ?string $first_name;
|
private ?string $first_name;
|
||||||
|
@ -123,7 +123,7 @@
|
||||||
$object->username = $data['username'] ?? null;
|
$object->username = $data['username'] ?? null;
|
||||||
$object->first_name = $data['first_name'] ?? null;
|
$object->first_name = $data['first_name'] ?? null;
|
||||||
$object->last_name = $data['last_name'] ?? null;
|
$object->last_name = $data['last_name'] ?? null;
|
||||||
$object->is_forum = $data['is_forum'] ?? null;
|
$object->is_forum = $data['is_forum'] ?? false;
|
||||||
|
|
||||||
return $object;
|
return $object;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue