From 179b37f2f82a268c16a122833922f831ca3c2b81 Mon Sep 17 00:00:00 2001 From: Web Commerce <62341588+web-commerce-og@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:59:52 +0200 Subject: [PATCH] [TASK] Ensure correct typed values for getter methods (#945) fixes #944 --- Classes/Domain/Model/Mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Domain/Model/Mail.php b/Classes/Domain/Model/Mail.php index f62005acc..41b094c6a 100644 --- a/Classes/Domain/Model/Mail.php +++ b/Classes/Domain/Model/Mail.php @@ -65,7 +65,7 @@ class Mail extends AbstractEntity /** * @var int */ - protected $time = null; + protected $time = 0; /** * @var Form @@ -543,7 +543,7 @@ public function getMarketingPageFunnelLastPage(): int { $pageFunnel = $this->getMarketingPageFunnel(); if (count($pageFunnel)) { - return $pageFunnel[count($pageFunnel) - 1]; + return (int) $pageFunnel[count($pageFunnel) - 1]; } return 0; }