From eb75544958bf6feee5bbd644b7aa7b872a21402b Mon Sep 17 00:00:00 2001
From: Dominik Frantisek Bucik <bucik@ics.muni.cz>
Date: Mon, 4 Apr 2022 16:36:17 +0200
Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fix=20default=20value=20i?=
 =?UTF-8?q?n=20ForceAup=20due=20to=20strictypes?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/Auth/Process/ForceAup.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/Auth/Process/ForceAup.php b/lib/Auth/Process/ForceAup.php
index f60c7347..f2a29d34 100644
--- a/lib/Auth/Process/ForceAup.php
+++ b/lib/Auth/Process/ForceAup.php
@@ -323,6 +323,9 @@ class ForceAup extends ProcessingFilter
      */
     private function parseDateTime(string $date, DateTime $default = null): DateTime
     {
+        if (null === $default) {
+            $default = DateTime::createFromFormat(self::DATETIME_FORMAT, '1970-01-01');
+        }
         $result = DateTime::createFromFormat(self::DATETIME_FORMAT, $date);
         if (false === $result) {
             $result = $default;
-- 
GitLab