Skip to content

Commit df57006

Browse files
authored
Fix for Laravels Carbon becoming stricter on return types (#641)
1 parent 625a81d commit df57006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/Date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function format(string $format): string
2121
/**
2222
* createFromFormat
2323
*/
24-
public static function createFromFormat($format, $time, $timezone = null): ?DateBase
24+
public static function createFromFormat($format, $time, $timezone = null): ?static
2525
{
2626
if (is_string($time)) {
2727
$time = static::translateTimeString($time, static::getLocale(), 'en');

0 commit comments

Comments
 (0)