chore: Добавлены аннотации к типам

This commit is contained in:
origami11@yandex.ru 2025-10-07 13:23:09 +03:00
parent 48269bd424
commit ad920f656c
14 changed files with 127 additions and 127 deletions

View file

@ -6,10 +6,10 @@ use ctiso\View\View,
class Composite extends View
{
private $tal;
private PHPTAL $tal;
public $config;
function __construct($file)
function __construct(string $file)
{
parent::__construct();
@ -29,17 +29,17 @@ class Composite extends View
$this->tal->set($key, $val);
}
function __set($key, $val) {
function __set(string $key, mixed $val) {
$this->tal->set($key, $val);
}
function execute()
function execute(): string
{
$this->processChild();
return $this->tal->execute();
}
function setTranslator($t) {
function setTranslator($t): void {
$this->tal->setTranslator($t);
}
}