Skip to content

Commit

Permalink
Fix 8.3 get_parent_class without arguments deprecation (#1357)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Mar 12, 2024
2 parents 7ce7d66 + 9d1226d commit bfdbf73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Mockery/RegExpCompatability.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ trait RegExpCompatability
{
public function expectExceptionMessageRegEx($regularExpression)
{
if (method_exists(get_parent_class(), 'expectExceptionMessageRegExp')) {
if (method_exists(get_parent_class(__CLASS__), 'expectExceptionMessageRegExp')) {
return parent::expectExceptionMessageRegExp($regularExpression);
}

Expand All @@ -15,7 +15,7 @@ public function expectExceptionMessageRegEx($regularExpression)

public static function assertMatchesRegEx($pattern, $string, $message = '')
{
if (method_exists(get_parent_class(), 'assertMatchesRegularExpression')) {
if (method_exists(get_parent_class(__CLASS__), 'assertMatchesRegularExpression')) {
return parent::assertMatchesRegularExpression($pattern, $string, $message);
}

Expand Down

0 comments on commit bfdbf73

Please sign in to comment.