From fa6251e5907f969c98e635db33668679a232b0df Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 27 Nov 2020 22:56:15 +0100 Subject: [PATCH] phpstan fixes --- Models/Event.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Models/Event.php b/Models/Event.php index 927a579..a0ccf2b 100755 --- a/Models/Event.php +++ b/Models/Event.php @@ -41,9 +41,9 @@ class Event private int $type = EventType::DEFAULT; - private $start = null; + public \DateTime $start; - private $end = null; + public \DateTime $end; /** * Name. @@ -61,21 +61,21 @@ class Event */ public string $description = ''; - private $calendar = null; + public Calendar $calendar; - private $costs = null; + public Money $costs; - private $budget = null; + public Money $budget; - private $earnings = null; + public Money $earnings; - private $tasks = []; + private array $tasks = []; - private $media = []; + private array $media = []; - private $progress = 0; + private int $progress = 0; - private $progressType = ProgressType::MANUAL; + private int $progressType = ProgressType::MANUAL; /** * Created.