From 1ddbbae09b7d12175306746ee99d2b777a4705ce Mon Sep 17 00:00:00 2001 From: ralph Date: Sun, 9 Oct 2022 12:24:21 +0000 Subject: [PATCH] Fix PHP Warning --- src/TgUtils/Date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TgUtils/Date.php b/src/TgUtils/Date.php index 4f2bcb6..ebcac4d 100644 --- a/src/TgUtils/Date.php +++ b/src/TgUtils/Date.php @@ -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()); }