Skip to content

PHPUnit: convert deprecations to exceptions#191

Merged
swissspidy merged 1 commit intomainfrom
update-phpunit-config
Oct 1, 2024
Merged

PHPUnit: convert deprecations to exceptions#191
swissspidy merged 1 commit intomainfrom
update-phpunit-config

Conversation

@swissspidy
Copy link
Member

Since PHPUnit 9.5.10 and 8.5.21, PHP deprecations are no longer converted to exceptions by default (convertDeprecationsToExceptions="true" can be configured to enable this).

This commit reverts PHPUnit to the previous behaviour by adding convertDeprecationsToExceptions="true" to the PHPUnit configuration. It also adds the other related directives for consistency.

See similar change in core: WordPress/wordpress-develop@7c2b54e

@swissspidy swissspidy added the scope:testing Related to testing label Oct 1, 2024
@swissspidy swissspidy added this to the 2.5.3 milestone Oct 1, 2024
@swissspidy swissspidy requested a review from a team as a code owner October 1, 2024 10:37
@swissspidy swissspidy merged commit 9dc4084 into main Oct 1, 2024
@swissspidy swissspidy deleted the update-phpunit-config branch October 1, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants