summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-10-14 00:12:51 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-20 16:48:12 +0200
commitd5f92baad00ce19e096f9936a4ffdcf5c3cd1383 (patch)
tree78d1a1891fffb7a660d50bedf4c48f80d9936aa2 /ext/pgsql/pgsql.stub.php
parent8f6cade8640f843331b3ddef2a6b96f73c89889c (diff)
downloadphp-git-d5f92baad00ce19e096f9936a4ffdcf5c3cd1383.tar.gz
Fix default value handling of mysqli_fetch_object()
Make [] acceptable both for classes without constructors and classes with a constructor that takes no arguments. Closes GH-6336.
Diffstat (limited to 'ext/pgsql/pgsql.stub.php')
-rw-r--r--ext/pgsql/pgsql.stub.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.stub.php b/ext/pgsql/pgsql.stub.php
index 8460fd26b6..aff847bbc4 100644
--- a/ext/pgsql/pgsql.stub.php
+++ b/ext/pgsql/pgsql.stub.php
@@ -190,7 +190,7 @@ function pg_fetch_assoc($result, ?int $row = null): array|false {}
function pg_fetch_array($result, ?int $row = null, int $mode = PGSQL_BOTH): array|false {}
/** @param resource $result */
-function pg_fetch_object($result, ?int $row = null, string $class = "stdClass", ?array $ctor_args = null): object|false {}
+function pg_fetch_object($result, ?int $row = null, string $class = "stdClass", array $constructor_args = []): object|false {}
/** @param resource $result */
function pg_fetch_all($result, int $mode = PGSQL_ASSOC): array {}