Skip to content

Commit

Permalink
Fix PHP Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalguru committed Oct 9, 2022
1 parent 1f2b9b5 commit 1ddbbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TgUtils/Date.php
Expand Up @@ -415,7 +415,7 @@ public function toUnix() {
}

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

0 comments on commit 1ddbbae

Please sign in to comment.