Fixing PHPStan found errors

This commit is contained in:
Pavel Shevaev 2023-06-02 15:54:03 +03:00
parent b16c83b8c4
commit db7be31160
1 changed files with 3 additions and 2 deletions

View File

@ -33,8 +33,9 @@ function _taskman_default_usage($script_name = "<taskman-script>")
} //namespace global } //namespace global
namespace taskman { namespace taskman {
use Exception;
class TaskmanException extends \Exception class TaskmanException extends Exception
{} {}
class TaskmanTask class TaskmanTask
@ -205,7 +206,7 @@ class TaskmanTask
return array(); return array();
} }
private function _parseProps(ReflectionFunction $refl) private function _parseProps(\ReflectionFunction $refl)
{ {
if(preg_match_all('~@(\S+)([^\n]+)?\n~', $refl->getDocComment(), $matches)) if(preg_match_all('~@(\S+)([^\n]+)?\n~', $refl->getDocComment(), $matches))
{ {