phpstan fixes

This commit is contained in:
Dennis Eichhorn 2021-10-10 16:07:06 +02:00
parent c722940d91
commit f318aae213
2 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class SurveyTemplate
*
* Should the result of the survey be made public?
*
* @var int
* @var bool
* @since 1.0.0
*/
public bool $hasPublicResult = true;
@ -58,7 +58,7 @@ class SurveyTemplate
/**
* Created.
*
* @var \DateTime
* @var \DateTimeImmutable
* @since 1.0.0
*/
public \DateTimeImmutable $createdAt;
@ -156,7 +156,7 @@ class SurveyTemplate
*/
public function getL11n() : SurveyTemplateL11n
{
return $this->l11n;
return $this->l11n ?? new NullSurveyTemplateL11n();
}
/**

View File

@ -32,7 +32,7 @@ class SurveyTemplateElement
* @var int
* @since 1.0.0
*/
private int $id = 0;
protected int $id = 0;
/**
* Type.