fix null $controller

This commit is contained in:
Alexey Chelnakov 2022-10-07 19:08:17 +03:00
parent d8b5ab9f71
commit 6abd901696

View File

@ -221,9 +221,9 @@ class ApiDocExtractor
*/ */
public function getReflectionMethod($controller) public function getReflectionMethod($controller)
{ {
// if (false === strpos($controller, '::') && 2 === substr_count($controller, ':')) { if (null === $controller) {
// $controller = $this->controllerNameParser->parse($controller); return null;
// } }
if (preg_match('#(.+)::([\w]+)#', $controller, $matches)) { if (preg_match('#(.+)::([\w]+)#', $controller, $matches)) {
$class = $matches[1]; $class = $matches[1];