Skip to content

Commit

Permalink
Merge pull request #99 from imacrayon/patch-1
Browse files Browse the repository at this point in the history
Fix setting callback in sub class example
  • Loading branch information
mgdm committed Apr 30, 2019
2 parents 972ded9 + 3952536 commit 2c9ca34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/subclass.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function subscribe($topic, $qos) {
}

public function onSubscribe(callable $callable) {
$this->subscribeHandler = $callable;
$this->subscribeCallback = $callable;
}

public function getSubscriptions() {
Expand Down

0 comments on commit 2c9ca34

Please sign in to comment.