Skip to content

Commit 1ddbbae

Browse files
committed
Fix PHP Warning
1 parent 1f2b9b5 commit 1ddbbae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TgUtils/Date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public function toUnix() {
415415
}
416416

417417
/** create a local instance from given format */
418-
public static function createFromFormat($format, $timeString, $timezone = null) {
418+
public static function createFromFormat($format, $timeString, $timezone = null): \DateTime|FALSE {
419419
if ($timezone == null) {
420420
$timezone = new \DateTimeZone(date_default_timezone_get());
421421
}

0 commit comments

Comments
 (0)