chore: Проверки к типам
This commit is contained in:
parent
5d3fae4249
commit
8786e84568
12 changed files with 41 additions and 47 deletions
|
|
@ -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 ??
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -219,9 +219,9 @@ class View extends \stdClass
|
|||
}
|
||||
|
||||
/**
|
||||
* @return View|string|false
|
||||
* Шаблон всегда возвращает строку
|
||||
*/
|
||||
function execute() {
|
||||
function execute(): string {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue