From 784154a5f5c2db99cf21685b8f949a8136eef5bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 4 Oct 2022 07:34:24 +0200 Subject: [PATCH 1/1] Set application as optional Cleanup --- Entity/Session.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Entity/Session.php b/Entity/Session.php index 084580e..70b2fc4 100644 --- a/Entity/Session.php +++ b/Entity/Session.php @@ -49,7 +49,7 @@ class Session { private $stop; /** - * @var boolean + * @var bool */ private $premium; @@ -149,6 +149,7 @@ class Session { $this->locked = null; $this->created = new \DateTime('now'); $this->updated = new \DateTime('now'); + $this->application = null; $this->applications = new ArrayCollection(); } @@ -285,7 +286,7 @@ class Session { /** * Set premium * - * @param boolean $premium + * @param bool $premium * * @return Session */ @@ -628,7 +629,7 @@ class Session { * * @return Session */ - public function setApplication(Application $application): Session { + public function setApplication(?Application $application): Session { $this->application = $application; return $this; -- 2.41.1