@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * @param string $haystack |
| 16 | 16 | * @param mixed $needle |
| 17 | 17 | * @param int $offset |
| 18 | - * @return bool|int |
|
| 18 | + * @return integer |
|
| 19 | 19 | */ |
| 20 | 20 | function mb_orig_strpos($haystack, $needle, $offset = 0) |
| 21 | 21 | { |
@@ -45,12 +45,19 @@ discard block |
||
| 45 | 45 | return serialize($m); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $m |
|
| 50 | + */ |
|
| 48 | 51 | function igbinary_unserialize($m) |
| 49 | 52 | { |
| 50 | 53 | return unserialize($m); |
| 51 | 54 | } |
| 52 | 55 | } |
| 53 | 56 | if (!function_exists('setTimeout')) { |
| 57 | + |
|
| 58 | + /** |
|
| 59 | + * @param Closure $cb |
|
| 60 | + */ |
|
| 54 | 61 | function setTimeout($cb, $timeout = null, $id = null, $priority = null) |
| 55 | 62 | { |
| 56 | 63 | return \PHPDaemon\Core\Timer::add($cb, $timeout, $id, $priority); |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | 110 | * @param string $cmd Command |
| 111 | - * @return integer |
|
| 111 | + * @return string |
|
| 112 | 112 | */ |
| 113 | 113 | public static function getCodeByCommand($cmd) |
| 114 | 114 | { |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | 110 | * @param string $cmd Command |
| 111 | - * @return integer |
|
| 111 | + * @return string |
|
| 112 | 112 | */ |
| 113 | 113 | public static function getCodeByCommand($cmd) |
| 114 | 114 | { |