From 7806a442386d07164960089425823ab3c5ed999c Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Mon, 6 Jun 2022 18:42:26 +0300 Subject: [PATCH] Fixing typos --- taskman.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/taskman.inc.php b/taskman.inc.php index 832b712..ae3118a 100644 --- a/taskman.inc.php +++ b/taskman.inc.php @@ -50,7 +50,7 @@ class TaskmanTask function __construct(\Closure $func, $name, $props = array()) { - $refl = new ReflectionFunction($func); + $refl = new \ReflectionFunction($func); $this->file = $refl->getFileName(); $this->line = $refl->getStartLine(); @@ -476,6 +476,7 @@ function _get_hints($task) return $found; } +//e.g: run,build,zip function _parse_taskstr($str) { $task_spec = array(); @@ -604,7 +605,7 @@ function main($argv = array(), $help_func = null, $proc_argv = true) if(sizeof($argv) > 0) { $task_str = array_shift($argv); - $tasks = _taskman_parse_taskstr($task_str); + $tasks = _parse_taskstr($task_str); if(count($tasks) == 1 && !_isset_task($tasks[0])) {