summaryrefslogtreecommitdiff
path: root/ext/odbc/odbc.stub.php
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-10-12 19:18:03 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-10-12 23:10:13 +0200
commit8d4774a2df4e16679c9176e2b6edecc94283af6d (patch)
tree055eb6ee3fa5c45d0240a4f8673b82db5f5fd628 /ext/odbc/odbc.stub.php
parent1c596ff1463a187d0fe135de251fb139b63858bd (diff)
downloadphp-git-8d4774a2df4e16679c9176e2b6edecc94283af6d.tar.gz
Change parameters types from int to bool
These are typical boolean parameters, so we shouldn't advertize them as integers. For the `$reverse` parameter that even fixes expectations, because the `reverse` member is a bitfield of 1 bit, so assigning any even integer would not set it. Closes GH-6328.
Diffstat (limited to 'ext/odbc/odbc.stub.php')
-rw-r--r--ext/odbc/odbc.stub.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/odbc/odbc.stub.php b/ext/odbc/odbc.stub.php
index 667d5e88b7..a20e22fa32 100644
--- a/ext/odbc/odbc.stub.php
+++ b/ext/odbc/odbc.stub.php
@@ -108,7 +108,7 @@ function odbc_field_scale($result_id, int $field_number): int|false {}
function odbc_field_num($result_id, string $field_name): int|false {}
/** @param resource $connection_id */
-function odbc_autocommit($connection_id, int $onoff = 0): int|bool {}
+function odbc_autocommit($connection_id, bool $onoff = false): int|bool {}
/** @param resource $connection_id */
function odbc_commit($connection_id): bool {}