@@ -114,7 +114,7 @@ |
||
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * Key |
| 117 | - * @return string |
|
| 117 | + * @return integer |
|
| 118 | 118 | */ |
| 119 | 119 | public function key() { |
| 120 | 120 | return $this->pos; |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * @param string $haystack |
| 11 | 11 | * @param mixed $needle |
| 12 | 12 | * @param int $offset |
| 13 | - * @return bool|int |
|
| 13 | + * @return integer |
|
| 14 | 14 | */ |
| 15 | 15 | function mb_orig_strpos($haystack, $needle, $offset = 0) |
| 16 | 16 | { |
@@ -38,11 +38,18 @@ discard block |
||
| 38 | 38 | return serialize($m); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $m |
|
| 43 | + */ |
|
| 41 | 44 | function igbinary_unserialize($m) { |
| 42 | 45 | return unserialize($m); |
| 43 | 46 | } |
| 44 | 47 | } |
| 45 | 48 | if (!function_exists('setTimeout')) { |
| 49 | + |
|
| 50 | + /** |
|
| 51 | + * @param Closure $cb |
|
| 52 | + */ |
|
| 46 | 53 | function setTimeout($cb, $timeout = null, $id = null, $priority = null) { |
| 47 | 54 | return \PHPDaemon\Core\Timer::add($cb, $timeout, $id, $priority); |
| 48 | 55 | } |