fix deprecated call

This commit is contained in:
Till Krüss
2023-01-29 11:58:46 -08:00
parent db65e5ebd3
commit 38e955bc26
+2 -2
View File
@@ -117,8 +117,8 @@ abstract class PredisTestCase extends \PHPUnit\Framework\TestCase
*/
public static function assertMatchesRegularExpression(string $pattern, string $string, $message = ''): void
{
if (is_callable('parent::' . __FUNCTION__)) {
call_user_func('parent::' . __FUNCTION__, $pattern, $string, $message);
if (method_exists(get_parent_class(parent::class), __FUNCTION__)) {
call_user_func([parent::class, __FUNCTION__], $pattern, $string, $message);
} else {
static::assertRegExp($pattern, $string, $message);
}