From db7be31160497b0cab47854d47a9f776a84ceb88 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 2 Jun 2023 15:54:03 +0300 Subject: [PATCH] Fixing PHPStan found errors --- taskman.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)) {