mirror of
https://github.com/Karaka-Management/oms-Surveys.git
synced 2026-01-11 16:08:41 +00:00
phpstan fixes
This commit is contained in:
parent
c722940d91
commit
f318aae213
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ class SurveyTemplateElement
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
protected int $id = 0;
|
||||
|
||||
/**
|
||||
* Type.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user