Skip to content

Conversation

@phpfui
Copy link

@phpfui phpfui commented Apr 1, 2025

Parameters with a default of null must be nullable is a new depreciation in PHP 8.4. Nullable parameters were introduced in PHP 7.1.

So this PR adds nullable parameter for the bool $force in the toggle method and the replaceTextWithCallback \DOMNode $domNode parameter.

I also dropped support for PHP 7.0, as it is very old and Packagist shows a monthly usage of only 0.2%.

I also updated the CI pipeline to test all versions of PHP and updated PHPUnit to 11 if needed by the PHP version.


This change is Reviewable

@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 1, 2025

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.

1 participant