Skip to content

Commit

Permalink
Fix League\CommonMark\Converter::convertToHtml() must be of the type …
Browse files Browse the repository at this point in the history
…string, null given exception

Laravel v6.10.0 switched to "league/commonmark instead of erusev/parsedown for mail markdown"

league/commonmark doesn't accept null to the parse method. So this small update pass in an empty string if it is null.
  • Loading branch information
ziming committed Jan 8, 2020
1 parent 27c5d9d commit d755321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/views/crud/columns/markdown.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{!! Illuminate\Mail\Markdown::parse($entry->{$column['name']}) !!}
{!! Illuminate\Mail\Markdown::parse($entry->{$column['name']} ?? '') !!}

0 comments on commit d755321

Please sign in to comment.