diff --git a/taskman.inc.php b/taskman.inc.php index 569b258..2cf526e 100644 --- a/taskman.inc.php +++ b/taskman.inc.php @@ -33,8 +33,9 @@ function _taskman_default_usage($script_name = "") } //namespace global namespace taskman { +use Exception; -class TaskmanException extends \Exception +class TaskmanException extends Exception {} class TaskmanTask @@ -205,7 +206,7 @@ class TaskmanTask return array(); } - private function _parseProps(ReflectionFunction $refl) + private function _parseProps(\ReflectionFunction $refl) { if(preg_match_all('~@(\S+)([^\n]+)?\n~', $refl->getDocComment(), $matches)) {