Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalguru committed Sep 12, 2022
1 parent befc60d commit 1f2b9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TgUtils/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ public function toUnix() {
}

/** create a local instance from given format */
public static function createFromFormat($format, $timeString, $timezone = null):\DateTime|bool {
public static function createFromFormat($format, $timeString, $timezone = null) {
if ($timezone == null) {
$timezone = new \DateTimeZone(date_default_timezone_get());
}
Expand Down

0 comments on commit 1f2b9b5

Please sign in to comment.