Skip to content

Commit d0ec841

Browse files
anomiexmatticbot
authored andcommitted
phpunit: Enable reporting and failing on PHPUnit 11 deprecations (#43179)
Now that we've fixed all the PHPUnit 11 deprecations, adjust the configs to enable `displayDetailsOnPhpunitDeprecations` and `failOnPhpunitDeprecation`. For plugins/crm, plugins/jetpack, and plugins/wpcomsh, there's one more deprecation left that's also fixed in this PR: WP Core's obsolete `WP_UnitTestCase_Base::checkRequirements()` function has a doc comment that PHPUnit is mis-parsing to see a `@group` annotation that's not actually intended. We can override it to stop PHPUnit from seeing that doc comment. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/14603629889 Upstream-Ref: Automattic/jetpack@c78f78d
1 parent 9b516a4 commit d0ec841

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"automattic/jetpack-changelogger": "^6.0.5-alpha",
1818
"yoast/phpunit-polyfills": "^3.0.0",
1919
"automattic/jetpack-test-environment": "@dev",
20-
"automattic/phpunit-select-config": "^1.0.2"
20+
"automattic/phpunit-select-config": "^1.0.3-alpha"
2121
},
2222
"suggest": {
2323
"automattic/jetpack-autoloader": "Allow for better interoperability with other plugins that use this package."

0 commit comments

Comments
 (0)