chore: Проверки для типов

This commit is contained in:
origami11@yandex.ru 2025-12-01 16:19:28 +03:00
parent 6fdc3eb46b
commit 5d3fae4249
15 changed files with 125 additions and 42 deletions

View file

@ -96,11 +96,12 @@ class Component
}
$this->before();
if (method_exists($this, $action)) {
return call_user_func([$this, $action], $crequest);
} else {
return $this->actionIndex($crequest);
$actionMethod = [$this, $action];
if (is_callable($actionMethod)) {
return call_user_func($actionMethod, $crequest);
}
return $this->actionIndex($crequest);
}
/**