mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
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:
parent
e0a8c7a8d0
commit
4a5e17f9af
@ -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) {}
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user