Skip to content

Commit

Permalink
Fixed return type of DateTimeImmutable (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
nusje2000 authored Jan 19, 2022
1 parent d48e85e commit c11fc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DateTimeImmutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getInnerDateTime(): \DateTimeImmutable
* @param \DateTimeZone|null $timezone
* @throws DatetimeException
*/
public static function createFromFormat($format, $time, $timezone = null)
public static function createFromFormat($format, $time, $timezone = null): self
{
$datetime = \DateTimeImmutable::createFromFormat($format, $time, $timezone);
if ($datetime === false) {
Expand Down

0 comments on commit c11fc2e

Please sign in to comment.