fix: Определения типов

This commit is contained in:
origami11@yandex.ru 2025-10-01 12:37:39 +03:00
parent 9f6fd74b17
commit dd74a97894
28 changed files with 334 additions and 249 deletions

View file

@ -68,11 +68,12 @@ class Top extends Composite
}
$init = [];
/** @var View $item */
foreach ($s->_section as $key => $item) {
$ss /*: View*/= $item;
if ($ss->codeGenerator !== null) {
if ($item->codeGenerator !== null) {
// функцию которая вычисляет а не результат
$part = call_user_func($ss->codeGenerator, $this, $key, $value);
$part = call_user_func($item->codeGenerator, $this, $key, $value);
$init[] = $part;
}
}
@ -89,14 +90,14 @@ class Top extends Composite
$this->set('title', $this->getTitle());
$this->set('jspath', $this->config->get('system', 'web'));
//
//
return $this->execute(); // execute+phptal ??
}
/**
* Массив имен файлов скриптов
*
* return array
* return array
*/
public function getScripts()
{
@ -121,7 +122,7 @@ class Top extends Composite
/**
* Массив имен файлов стилей
*
* return array
* return array
*/
public function getStyleSheet()
{