We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f2b9b5 commit 1ddbbaeCopy full SHA for 1ddbbae
src/TgUtils/Date.php
@@ -415,7 +415,7 @@ public function toUnix() {
415
}
416
417
/** create a local instance from given format */
418
- public static function createFromFormat($format, $timeString, $timezone = null) {
+ public static function createFromFormat($format, $timeString, $timezone = null): \DateTime|FALSE {
419
if ($timezone == null) {
420
$timezone = new \DateTimeZone(date_default_timezone_get());
421
0 commit comments