LaravelDaily/laravel-invoices

Deprecation warning since PHP 8.3 mb_convert_encoding()

LWlook opened this issue · 0 comments

Describe the bug
Since I updated my project to PHP 8.3 I get the following error:
mb_convert_encoding(): Handling HTML entities via mbstring is deprecated;

To Reproduce

  1. Generate a PDF with PHP 8.3
  2. Look at the logs to find the deprecation warning.

Expected behavior
No warnings should be generated.

Additional context
The problem is the function here:

$html = mb_convert_encoding($view, 'HTML-ENTITIES', 'UTF-8');