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

PHP82 deprecated error in MarkdownExtra doExtraAttributes #395

Open
jerry1970 opened this issue Jun 2, 2023 · 0 comments
Open

PHP82 deprecated error in MarkdownExtra doExtraAttributes #395

jerry1970 opened this issue Jun 2, 2023 · 0 comments

Comments

@jerry1970
Copy link

jerry1970 commented Jun 2, 2023

PHP Deprecated: preg_match_all(): Passing null to parameter 2 ($subject) of type string is deprecated in /var/www/dprp/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php on line 232

Line 227 checks for empty $attr && no default ID value && empty classes, but line 232 still tries to match on $attr, which could be null.

Using $attr ?? "" on line 232 probably solves that.

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

No branches or pull requests

1 participant