fix(admin): fix error when chat_id is string
This commit is contained in:
@@ -227,7 +227,7 @@ class SettingsSerializerService
|
||||
throw new InvalidArgumentException('telegram.bot_token must be a string or null');
|
||||
}
|
||||
|
||||
if (isset($data['chat_id']) && ! is_int($data['chat_id'])) {
|
||||
if (isset($data['chat_id']) && ! is_numeric($data['chat_id'])) {
|
||||
throw new InvalidArgumentException('telegram.chat_id must be an integer or null');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user