Skip to content

Commit 4a5e17f

Browse files
committed
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.
1 parent e0a8c7a commit 4a5e17f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ext/pdo/pdo.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@ public function rowCount() {}
129129
public function setAttribute(int $attribute, $value) {}
130130

131131
/** @return bool */
132-
public function setFetchMode(int $mode, ...$params) {}
132+
public function setFetchMode(int $mode, $param1 = UNKNOWN, $param2 = UNKNOWN) {}
133133
}

ext/pdo/pdo_arginfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,6 @@ ZEND_END_ARG_INFO()
125125

126126
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDOStatement_setFetchMode, 0, 0, 1)
127127
ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0)
128-
ZEND_ARG_VARIADIC_INFO(0, params)
128+
ZEND_ARG_INFO(0, param1)
129+
ZEND_ARG_INFO(0, param2)
129130
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)