From 0261b8d2da2f08e3f949d59f640b5a36d22198f4 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 29 Jan 2017 19:10:18 +0100 Subject: [PATCH] Fix strict type bug --- Datatypes/SmartDateTime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Datatypes/SmartDateTime.php b/Datatypes/SmartDateTime.php index d2c17b72f..50c94bf04 100644 --- a/Datatypes/SmartDateTime.php +++ b/Datatypes/SmartDateTime.php @@ -151,7 +151,7 @@ class SmartDateTime extends \DateTime */ public function getFirstDayOfMonth() : int { - return getdate(mktime(null, null, null, (int) $this->format('m'), 1, (int) $this->format('Y')))['wday']; + return getdate(mktime(0, 0, 0, (int) $this->format('m'), 1, (int) $this->format('Y')))['wday']; } }