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 ); } }