mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 13:28:39 +00:00
Fix strict type bug
This commit is contained in:
parent
a4e89ee7b1
commit
0261b8d2da
|
|
@ -151,7 +151,7 @@ class SmartDateTime extends \DateTime
|
||||||
*/
|
*/
|
||||||
public function getFirstDayOfMonth() : int
|
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'];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user