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

Fix PHP 8.1 deprecations #207

Merged
merged 1 commit into from
Jun 10, 2021
Merged

Conversation

derrabus
Copy link
Contributor

@derrabus derrabus commented Jun 5, 2021

Several DOM methods trigger a deprecation warning on PHP 8.1 if we pass null for a parameter that is expected to be a string. This PR should fix those issues by adding explicit string casts.

@goetas goetas merged commit e46e177 into Masterminds:master Jun 10, 2021
@goetas
Copy link
Member

goetas commented Jun 10, 2021

thanks!

@derrabus derrabus deleted the bugfix/php8-null branch June 10, 2021 14:28
@derrabus
Copy link
Contributor Author

Thanks for Merging! 🙂

derrabus added a commit to symfony/symfony that referenced this pull request Jun 22, 2021
…derrabus)

This PR was merged into the 4.4 branch.

Discussion
----------

Pin masterminds/html5 to the master branch for PHP 8.1

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

Our tests on PHP 8.1 require the changes I've made in Masterminds/html5-php#207. Unfortunately, Composer will not pick a version with those changes because of the reasons described in Masterminds/html5-php#209. This PR adds a small workaround to the PHP 8.1 job which I'll happily revert as soon as Masterminds/html5-php#209 is resolved.

Commits
-------

9c69e77 Pin masterminds/html5 to the master branch for PHP 8.1
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.

None yet

2 participants