mirror of
https://github.com/Karaka-Management/oms-Surveys.git
synced 2026-02-17 15:38:40 +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?
|
* Should the result of the survey be made public?
|
||||||
*
|
*
|
||||||
* @var int
|
* @var bool
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public bool $hasPublicResult = true;
|
public bool $hasPublicResult = true;
|
||||||
|
|
@ -58,7 +58,7 @@ class SurveyTemplate
|
||||||
/**
|
/**
|
||||||
* Created.
|
* Created.
|
||||||
*
|
*
|
||||||
* @var \DateTime
|
* @var \DateTimeImmutable
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public \DateTimeImmutable $createdAt;
|
public \DateTimeImmutable $createdAt;
|
||||||
|
|
@ -156,7 +156,7 @@ class SurveyTemplate
|
||||||
*/
|
*/
|
||||||
public function getL11n() : SurveyTemplateL11n
|
public function getL11n() : SurveyTemplateL11n
|
||||||
{
|
{
|
||||||
return $this->l11n;
|
return $this->l11n ?? new NullSurveyTemplateL11n();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ class SurveyTemplateElement
|
||||||
* @var int
|
* @var int
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private int $id = 0;
|
protected int $id = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type.
|
* Type.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user