diff --git a/Lib/Help.php b/Lib/Help.php index 6b89508..97d2792 100644 --- a/Lib/Help.php +++ b/Lib/Help.php @@ -7,7 +7,11 @@ use BSR\Lib\Formatter\Html; class Help { private static function func($ws, $func) { - $rm = new \ReflectionMethod($ws, $func); + try { + $rm = new \ReflectionMethod($ws, $func); + } catch(\ReflectionException $e) { + return ''; + } $doc = $rm->getDocComment(); $params = $rm->getParameters();