Skip to content

Commit b24cc1a

Browse files
committed
to static method
1 parent 1502cf6 commit b24cc1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/DateTimeUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function getUnixTimestamp(): int {
5252
* @return \DateTime
5353
* @throws \Exception
5454
*/
55-
public function subtractHours(int $hours, \DateTime $dateTime = null): \DateTime {
55+
public static function subtractHours(int $hours, \DateTime $dateTime = null): \DateTime {
5656
if (null === $dateTime) $dateTime = new \DateTime();
5757
$dateTime->modify("-$hours hours");
5858
return $dateTime;

0 commit comments

Comments
 (0)