Fix strict type bug

This commit is contained in:
Dennis Eichhorn 2017-01-29 19:10:18 +01:00
parent a4e89ee7b1
commit 0261b8d2da

View File

@ -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'];
}
}