Skip to content

Commit

Permalink
Return empty string not null for format
Browse files Browse the repository at this point in the history
  • Loading branch information
RoccoHoward committed Aug 18, 2021
1 parent fd64c01 commit d171b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NullCarbon.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct($time = null, $tz = null)
*/
public function format($format)
{
return null;
return '';
}

/**
Expand Down

0 comments on commit d171b6c

Please sign in to comment.