fix(admin): fix error when chat_id is string

This commit is contained in:
2025-12-04 11:23:00 +03:00
parent 418a2fc5bb
commit 8f6af04e73
2 changed files with 22 additions and 5 deletions

View File

@@ -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');
}