diff --git a/src/Ratchet/Wamp/TopicManager.php b/src/Ratchet/Wamp/TopicManager.php index b019371..6020791 100644 --- a/src/Ratchet/Wamp/TopicManager.php +++ b/src/Ratchet/Wamp/TopicManager.php @@ -67,7 +67,7 @@ class TopicManager implements WsServerInterface, WampServerInterface { /** * {@inheritdoc} */ - public function onPublish(ConnectionInterface $conn, $topic, $event, array $exclude = array(), array $eligible = array()) { + public function onPublish(ConnectionInterface $conn, $topic, $event, array $exclude, array $eligible) { $this->app->onPublish($conn, $this->getTopic($topic), $event, $exclude, $eligible); } diff --git a/src/Ratchet/Wamp/WampServerInterface.php b/src/Ratchet/Wamp/WampServerInterface.php index 0269e06..55aca4c 100644 --- a/src/Ratchet/Wamp/WampServerInterface.php +++ b/src/Ratchet/Wamp/WampServerInterface.php @@ -39,5 +39,5 @@ interface WampServerInterface extends ComponentInterface { * @param array A list of session IDs the message should be excluded from (blacklist) * @param array A list of session Ids the message should be send to (whitelist) */ - function onPublish(ConnectionInterface $conn, $topic, $event, array $exclude = array(), array $eligible = array()); + function onPublish(ConnectionInterface $conn, $topic, $event, array $exclude, array $eligible); } \ No newline at end of file diff --git a/tests/Ratchet/Tests/Wamp/TopicManagerTest.php b/tests/Ratchet/Tests/Wamp/TopicManagerTest.php index 0a6655b..8388550 100644 --- a/tests/Ratchet/Tests/Wamp/TopicManagerTest.php +++ b/tests/Ratchet/Tests/Wamp/TopicManagerTest.php @@ -144,7 +144,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase { , $this->isType('array') ); - $this->mngr->onPublish($this->conn, 'topic coverage', $msg); + $this->mngr->onPublish($this->conn, 'topic coverage', $msg, array(), array()); } public function testOnCloseBubbles() {