Skip to content

Commit

Permalink
Some interface compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Devristo committed Aug 31, 2014
1 parent bde3448 commit 4451259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Devristo/Phpws/Protocol/StackTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ public function offsetUnset($offset)
throw new \BadMethodCallException("Immutable stack, cannot set element");
}

public function on($event, $listener)
public function on($event, callable $listener)
{
return $this->getTopTransport()->on($event, $listener);
}

public function once($event, $listener)
public function once($event, callable $listener)
{
return $this->getTopTransport()->once($event, $listener);
}
Expand Down

0 comments on commit 4451259

Please sign in to comment.