Commits

Thomas Weinert committed 54b6698

Fixed tyoes: Libevent listeners can only use the libevent loop implementation

Comments (0)

Files changed (3)

src/Carica/Io/Event/Loop/Libevent/Listener/Interval.php

 
     private $_milliseconds = 0;
 
-    public function __construct(Event\Loop $loop, Callable $callback, $milliseconds) {
+    public function __construct(Event\Loop\Libevent $loop, Callable $callback, $milliseconds) {
       parent::__construct($loop, $callback);
       $this->_milliseconds = $milliseconds;
     }

src/Carica/Io/Event/Loop/Libevent/Listener/Stream.php

     private $_write = NULL;
     private $_stream = NULL;
 
-    public function __construct(Event\Loop $loop, $stream) {
+    public function __construct(Event\Loop\Libevent $loop, $stream) {
       $that = $this;
       parent::__construct(
         $loop,

src/Carica/Io/Event/Loop/Libevent/Listener/Timeout.php

 
     private $_milliseconds = 0;
 
-    public function __construct(Event\Loop $loop, Callable $callback, $milliseconds) {
+    public function __construct(Event\Loop\Libevent $loop, Callable $callback, $milliseconds) {
       parent::__construct($loop, $callback);
       $this->_milliseconds = $milliseconds;
     }