tgallice / fb-messenger-sdk

Facebook Messenger Bot php sdk
MIT License
94 stars 45 forks source link

Parameter must be an array or an object #63

Open mfiyalka opened 6 years ago

mfiyalka commented 6 years ago

Hello! Help me, please. I use "tgallice/fb-messenger-sdk": "1.0.x-dev" PHP 7.2.5

Psy Shell v0.9.4 (PHP 7.2.5 — cli) by Justin Hileman
>>> $message = new \Tgallice\FBMessenger\Model\Message(__('facebook.branch_choose_menu'));
=> Tgallice\FBMessenger\Model\Message {#2508}
>>> $message->addQuickReply(new \Tgallice\FBMessenger\Model\QuickReply\Text(__('facebook.catalog_branches'), 'Branch@selectCity'));
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/chtbt/current/vendor/tgallice/fb-messenger-sdk/src/Model/Message.php on line 98
>>>