fix: phpstan level=6

This commit is contained in:
origami11@yandex.ru 2025-10-06 12:49:36 +03:00
parent acbf2c847d
commit 48269bd424
41 changed files with 324 additions and 347 deletions

View file

@ -8,7 +8,7 @@ namespace ctiso\View;
class Plain extends \stdClass
{
protected $document;
protected $values = array();
protected $values = [];
public function __construct ($document)
{
@ -36,10 +36,10 @@ class Plain extends \stdClass
return self::getTemplateContent ($this->document, $result);
}
static function getTemplateContent($document, $result)
static function getTemplateContent(string $document, $result): string
{
ob_start ();
include ($document);
include ($document);
$content = ob_get_contents ();
ob_clean ();
return $content;