Skip to content

Commit

Permalink
to static method
Browse files Browse the repository at this point in the history
  • Loading branch information
doganoo committed Dec 14, 2018
1 parent 1502cf6 commit b24cc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/DateTimeUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function getUnixTimestamp(): int {
* @return \DateTime
* @throws \Exception
*/
public function subtractHours(int $hours, \DateTime $dateTime = null): \DateTime {
public static function subtractHours(int $hours, \DateTime $dateTime = null): \DateTime {
if (null === $dateTime) $dateTime = new \DateTime();
$dateTime->modify("-$hours hours");
return $dateTime;
Expand Down

0 comments on commit b24cc1a

Please sign in to comment.