Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix League\CommonMark\Converter::convertToHtml() must be of the type string, null given exception #2353

Merged
merged 1 commit into from Jan 15, 2020

Conversation

ziming
Copy link
Contributor

@ziming ziming commented Jan 8, 2020

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

See: laravel/framework#30982

league/commonmark doesn't accept null to the parse method. So this small update pass in an empty string if it is null.

Alternatively someone can make a PR at laravel/framework too to allow accepting null.

…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.
@scrutinizer-notifier
Copy link

A new inspection was created.

@ziming
Copy link
Contributor Author

ziming commented Jan 14, 2020

Okay got from laravel/framework side that they won't change back to previous behaviour of allowing null as they closed my issue so this is good to merge.

@tabacitu tabacitu merged commit cb61c42 into Laravel-Backpack:master Jan 15, 2020
@tabacitu
Copy link
Member

Excellent! No idea this was happening. Great drill-down and solution @ziming , thanks a lot! It's now merged and tagged, so a composer update should get the updated file for you.

Cheers!

@ziming ziming deleted the patch-1 branch January 23, 2020 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants