fix: phpstan level=6
This commit is contained in:
parent
acbf2c847d
commit
48269bd424
41 changed files with 324 additions and 347 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue