chore: Проверки к типам

This commit is contained in:
origami11@yandex.ru 2025-12-01 19:44:22 +03:00
parent 5d3fae4249
commit 8786e84568
12 changed files with 41 additions and 47 deletions

View file

@ -45,7 +45,8 @@ class Top extends Composite
*
* @return string
*/
public function render()
#[\Override]
public function execute(): string
{
$this->doTree('alias');
@ -107,7 +108,7 @@ class Top extends Composite
$this->set('title', $this->getTitle());
$this->set('jspath', $this->config->get('system', 'web'));
//
return $this->execute(); // execute+phptal ??
return parent::execute(); // execute+phptal ??
}
/**

View file

@ -219,9 +219,9 @@ class View extends \stdClass
}
/**
* @return View|string|false
* Шаблон всегда возвращает строку
*/
function execute() {
function execute(): string {
return '';
}
}