Open
Description
Hey there,
I'm enforcing types in my project and got a new error lately concerning this package.
Uncaught TypeError: mb_encoding_aliases(): Argument #1 ($encoding) must be of type string, null given in /var/www/vendor/embed/embed/src/Document.php:49 Stack trace: #0 /var/www/vendor/embed/embed/src/Document.php(49): mb_encoding_aliases(NULL).
Our initial value should be an empty string instead of null $encoding = '';
or the function called more securely with a fallback value mb_encoding_aliases($encoding ?? '')
.
Pull request which fixes the issue:
#553
Metadata
Metadata
Assignees
Labels
No labels