Skip to content

Commit

Permalink
Fix PHP 8.2 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rybakit committed Mar 8, 2023
1 parent d970456 commit 31f9880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/PhpUnitCompat.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ trait PhpUnitCompat
*/
public function expectExceptionMessageMatches(string $regularExpression) : void
{
is_callable('parent::expectExceptionMessageMatches')
is_callable(parent::class.'::expectExceptionMessageMatches')
? parent::expectExceptionMessageMatches(...func_get_args())
: parent::expectExceptionMessageRegExp(...func_get_args());
}
Expand All @@ -33,7 +33,7 @@ public function expectExceptionMessageMatches(string $regularExpression) : void
*/
public static function assertEqualsCanonicalizing($expected, $actual, string $message = '') : void
{
is_callable('parent::assertEqualsCanonicalizing')
is_callable(parent::class.'::assertEqualsCanonicalizing')
? parent::assertEqualsCanonicalizing($expected, $actual, $message)
: parent::assertEquals($expected, $actual, $message, 0.0, 10, true);
}
Expand All @@ -43,7 +43,7 @@ public static function assertEqualsCanonicalizing($expected, $actual, string $me
*/
public static function assertMatchesRegularExpression(string $pattern, string $string, string $message = '') : void
{
is_callable('parent::assertMatchesRegularExpression')
is_callable(parent::class.'::assertMatchesRegularExpression')
? parent::assertMatchesRegularExpression(...func_get_args())
: parent::assertRegExp(...func_get_args());
}
Expand Down

0 comments on commit 31f9880

Please sign in to comment.