瀏覽代碼

Update Timer.php

walkor 8 年之前
父節點
當前提交
c92ae3c346
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Lib/Timer.php

+ 2 - 2
Lib/Timer.php

@@ -78,7 +78,7 @@ class Timer
      * @param callback $func
      * @param mixed    $args
      * @param bool     $persistent
-     * @return bool
+     * @return int/false
      */
     public static function add($time_interval, $func, $args = array(), $persistent = true)
     {
@@ -107,7 +107,7 @@ class Timer
             self::$_tasks[$run_time] = array();
         }
         self::$_tasks[$run_time][] = array($func, (array)$args, $persistent, $time_interval);
-        return true;
+        return 1;
     }