Skip to content

Commit

Permalink
Update WhatsAppEvent.php
Browse files Browse the repository at this point in the history
Adding Missing "name" Argument To Prevent "Warning: Missing argument 3 for WhatsAppEventListenerProxy::onSendPresence()"
  • Loading branch information
SikiFn authored and shirioko committed Aug 12, 2014
1 parent 2ebb619 commit d84ee8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/php/WhatsAppEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -736,10 +736,11 @@ function fireSendMessage(

function fireSendPresence(
$phone,
$type
$type,
$name
) {
$callbackEvent = function(WhatsAppEventListener $listener) use ($phone, $type) {
$listener->onSendPresence($phone, $type);
$callbackEvent = function(WhatsAppEventListener $listener) use ($phone, $type, $name) {
$listener->onSendPresence($phone, $type, $name);
};
$this->fireCallback($callbackEvent);
}
Expand Down

0 comments on commit d84ee8e

Please sign in to comment.