From 1e6e5befc34ee9eaa671ee9e3d11c1310a791bb9 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 23 Feb 2024 10:19:40 +0100 Subject: [PATCH] PHPUnit 11 | Make select methods `protected` PHPUnit 11.0 changed the visibility of a number of `TestCase` methods from `public` to `protected`, so the PHPUnit Polyfills should follow suit. For the Polyfills, the only affected method is the polyfilled `expectExceptionMessageMatches()` method. Refs: * sebastianbergmann/phpunit 5213 * https://github.com/sebastianbergmann/phpunit/commit/8b8e38e962c1aa9b2a2497c00f66dc364f02092d --- src/Polyfills/ExpectExceptionMessageMatches.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Polyfills/ExpectExceptionMessageMatches.php b/src/Polyfills/ExpectExceptionMessageMatches.php index 340605f..e9267f3 100644 --- a/src/Polyfills/ExpectExceptionMessageMatches.php +++ b/src/Polyfills/ExpectExceptionMessageMatches.php @@ -23,7 +23,7 @@ trait ExpectExceptionMessageMatches { * * @return void */ - final public function expectExceptionMessageMatches( $regularExpression ) { + final protected function expectExceptionMessageMatches( $regularExpression ) { $this->expectExceptionMessageRegExp( $regularExpression ); } }