mirror of
https://github.com/predis/predis.git
synced 2026-08-30 12:15:03 +00:00
fix deprecated call
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user