diff --git a/ext/pdo_mysql/tests/pdo_mysql_subclass.phpt b/ext/pdo_mysql/tests/pdo_mysql_subclass.phpt index f98271d792b..0a996be8f5f 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_subclass.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_subclass.phpt @@ -24,9 +24,9 @@ MySQLPDOTest::skip(); return parent::exec($statement); } - public function query($statement) { + public function query(...$args) { $this->protocol(); - return call_user_func_array(array($this, 'parent::query'), func_get_args()); + return parent::query(...$args); } public function __call($method, $args) {