Skip to content

Commit c11fc2e

Browse files
authored
Fixed return type of DateTimeImmutable (#323)
1 parent d48e85e commit c11fc2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/DateTimeImmutable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getInnerDateTime(): \DateTimeImmutable
5151
* @param \DateTimeZone|null $timezone
5252
* @throws DatetimeException
5353
*/
54-
public static function createFromFormat($format, $time, $timezone = null)
54+
public static function createFromFormat($format, $time, $timezone = null): self
5555
{
5656
$datetime = \DateTimeImmutable::createFromFormat($format, $time, $timezone);
5757
if ($datetime === false) {

0 commit comments

Comments
 (0)