Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function toJson() on bool #399

Open
Traineratwot opened this issue Mar 10, 2023 · 1 comment
Open

Call to a member function toJson() on bool #399

Traineratwot opened this issue Mar 10, 2023 · 1 comment

Comments

@Traineratwot
Copy link

Fatal error: Uncaught Error: Call to a member function toJson() on bool in /var/www/marketplaces/data/www/mk.massive.ru/vendor/telegram-bot/api/src/BotApi.php:354

replace this

'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
on

            'reply_markup' => empty($replyMarkup) ? null : $replyMarkup->toJson(),
@bernard-ng
Copy link
Contributor

@Traineratwot Hi, you could show your call to this function to give us more context ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants