From c66db0c4c75254a969b59198bb1820ad2252d7e4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 17 Aug 2019 14:14:51 +0200 Subject: [PATCH] fix after change to php 7.4 --- Models/Answer.php | 6 +++--- Models/Question.php | 6 +++--- Models/Section.php | 6 +++--- Models/Survey.php | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Models/Answer.php b/Models/Answer.php index 160a591..85fe848 100644 --- a/Models/Answer.php +++ b/Models/Answer.php @@ -31,7 +31,7 @@ class Answer * @var int * @since 1.0.0 */ - private $id = 0; + private int $id = 0; /** * Name. @@ -39,7 +39,7 @@ class Answer * @var string * @since 1.0.0 */ - private $name = ''; + private string $name = ''; /** * Description. @@ -47,7 +47,7 @@ class Answer * @var string * @since 1.0.0 */ - private $description = ''; + private string $description = ''; private static $instances = []; diff --git a/Models/Question.php b/Models/Question.php index b55ee78..e9eb8c2 100644 --- a/Models/Question.php +++ b/Models/Question.php @@ -31,7 +31,7 @@ class Question * @var int * @since 1.0.0 */ - private $id = 0; + private int $id = 0; /** * Name. @@ -39,7 +39,7 @@ class Question * @var string * @since 1.0.0 */ - private $name = ''; + private string $name = ''; /** * Description. @@ -47,7 +47,7 @@ class Question * @var string * @since 1.0.0 */ - private $description = ''; + private string $description = ''; private static $instances = []; diff --git a/Models/Section.php b/Models/Section.php index 7777399..db1a958 100644 --- a/Models/Section.php +++ b/Models/Section.php @@ -31,7 +31,7 @@ class Section * @var int * @since 1.0.0 */ - private $id = 0; + private int $id = 0; /** * Name. @@ -39,7 +39,7 @@ class Section * @var string * @since 1.0.0 */ - private $name = ''; + private string $name = ''; /** * Description. @@ -47,7 +47,7 @@ class Section * @var string * @since 1.0.0 */ - private $description = ''; + private string $description = ''; private static $instances = []; diff --git a/Models/Survey.php b/Models/Survey.php index b4756c1..a56825d 100644 --- a/Models/Survey.php +++ b/Models/Survey.php @@ -31,7 +31,7 @@ class Survey * @var int * @since 1.0.0 */ - private $id = 0; + private int $id = 0; /** * Name. @@ -39,7 +39,7 @@ class Survey * @var string * @since 1.0.0 */ - private $name = ''; + private string $name = ''; /** * Description. @@ -47,7 +47,7 @@ class Survey * @var string * @since 1.0.0 */ - private $description = ''; + private string $description = ''; /** * Created. @@ -63,7 +63,7 @@ class Survey * @var int * @since 1.0.0 */ - private $creator = null; + private int $creator = null; private static $instances = [];