This commit is contained in:
Daniil Gentili 2020-01-16 20:23:39 +01:00
parent 170308d574
commit 489ce873d0
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -567,7 +567,7 @@ trait BotAPI
*/
public function parseMode(array $arguments): \Generator
{
if ($arguments['message'] === '' || !isset($arguments['message']) || !isset($arguments['parse_mode'])) {
if (($arguments['message'] ?? '') === '' || !isset($arguments['parse_mode'])) {
return $arguments;
}
if (isset($arguments['parse_mode']['_'])) {