Skip to content

Commit 4808fea

Browse files
author
cradu
committed
Updated tests
1 parent 530b064 commit 4808fea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Util/IsoDate.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ public static function init17(array &$buffer, int &$offset): ?Carbon
6262
}
6363

6464
$date = Carbon::create($year, $month, $day, $hour, $min, $sec, $utcOffsetHours);
65-
$date->addMilliseconds($ms);
65+
66+
if ($date !== null) {
67+
$date->addMilliseconds($ms);
68+
}
69+
6670
return $date;
6771
}
6872
}

0 commit comments

Comments
 (0)