Skip to content

Commit

Permalink
Use type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 30, 2022
1 parent 38322a0 commit 90e3a7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CreatesNewPublicationPage extends CreateAction implements CreateActionCont
*/
public function __construct(PublicationType $pubType, Collection $fieldData, bool $force = false)
{
$fieldData->prepend(new DatetimeField(Carbon::now()->toString()), '__createdAt');
$fieldData->prepend(new DatetimeField((string) Carbon::now()), '__createdAt');

$this->pubType = $pubType;
$this->fieldData = $fieldData;
Expand Down

0 comments on commit 90e3a7a

Please sign in to comment.