Restore PDOStatement::setFetchMode() signature

I don't think this is worth the BC break, and getting variadic
signature changes compatible across PHP versions is somewhat tricky.
This commit is contained in:
Nikita Popov 2019-12-06 07:18:11 +01:00
parent e0a8c7a8d0
commit 4a5e17f9af
2 changed files with 3 additions and 2 deletions

View File

@ -129,5 +129,5 @@ class PDOStatement implements Traversable {
public function setAttribute(int $attribute, $value) {}
/** @return bool */
public function setFetchMode(int $mode, ...$params) {}
public function setFetchMode(int $mode, $param1 = UNKNOWN, $param2 = UNKNOWN) {}
}

View File

@ -125,5 +125,6 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_setFetchMode, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
ZEND_ARG_VARIADIC_INFO(0, params)
ZEND_ARG_INFO(0, param1)
ZEND_ARG_INFO(0, param2)
ZEND_END_ARG_INFO()