|
|
@@ -12,14 +12,16 @@
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
|
|
*/
|
|
|
namespace Workerman\Events\React;
|
|
|
+
|
|
|
use Workerman\Events\EventInterface;
|
|
|
use React\EventLoop\TimerInterface;
|
|
|
+use React\EventLoop\LoopInterface;
|
|
|
|
|
|
/**
|
|
|
* Class StreamSelectLoop
|
|
|
* @package Workerman\Events\React
|
|
|
*/
|
|
|
-class Base implements \React\EventLoop\LoopInterface
|
|
|
+class Base implements LoopInterface
|
|
|
{
|
|
|
/**
|
|
|
* @var array
|
|
|
@@ -37,7 +39,7 @@ class Base implements \React\EventLoop\LoopInterface
|
|
|
protected $_signalHandlerMap = array();
|
|
|
|
|
|
/**
|
|
|
- * @var \React\EventLoop\LoopInterface
|
|
|
+ * @var LoopInterface
|
|
|
*/
|
|
|
protected $_eventLoop = null;
|
|
|
|
|
|
@@ -58,7 +60,7 @@ class Base implements \React\EventLoop\LoopInterface
|
|
|
* @param array $args
|
|
|
* @return bool
|
|
|
*/
|
|
|
- public function add($fd, $flag, $func, $args = array())
|
|
|
+ public function add($fd, $flag, $func, array $args = array())
|
|
|
{
|
|
|
$args = (array)$args;
|
|
|
switch ($flag) {
|