Skip to content

Commit 11e0ccf

Browse files
committed
Hotfix
1 parent f107795 commit 11e0ccf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Helpers/DateHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,19 @@
1212
*/
1313
class DateHelper
1414
{
15-
1615
/**
1716
* Parse a date from string with a format to a DateTime object
1817
*
1918
* @param string $string
2019
* @param string $format
2120
*
2221
* @return DateTime
22+
*
23+
* @throws Exception
2324
*/
2425
public static function parse(string $string, string $format): DateTime
2526
{
26-
return new DateTime::createFromFormat($format, $string);
27+
return DateTime::createFromFormat($format, $string);
2728
}
2829

2930
/**
@@ -54,7 +55,6 @@ public static function format($date, string $format): string
5455
}
5556
}
5657

57-
5858
/**
5959
* Get a date object by given date or time format
6060
*

0 commit comments

Comments
 (0)