I received this Deprecation notice when running unit tests for sculpin under PHP 8.1:
PHP Deprecated: preg_match_all():
Passing null to parameter #2 ($subject) of type string is deprecated
in sculpin/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php
on line 252
I solved it in the leanest way possible, which was to cast $attr to string. Let me know if you would prefer a different solution.
And thanks for building this library! I've been quite happy with it.
I received this Deprecation notice when running unit tests for
sculpin
under PHP 8.1:I solved it in the leanest way possible, which was to cast
$attr
tostring
. Let me know if you would prefer a different solution.And thanks for building this library! I've been quite happy with it.