Skip to content

Commit

Permalink
Fix pg_get_notify() parameter name
Browse files Browse the repository at this point in the history
Closes GH-6916
  • Loading branch information
kocsismate committed Apr 26, 2021
1 parent 2bce26f commit d1e590f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/pgsql/pgsql.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ function pg_get_result($connection) {}
/** @param resource $result */
function pg_result_status($result, int $mode = PGSQL_STATUS_LONG): string|int {}

/** @param resource $result */
function pg_get_notify($result, int $mode = PGSQL_ASSOC): array|false {}
/** @param resource $connection */
function pg_get_notify($connection, int $mode = PGSQL_ASSOC): array|false {}

/** @param resource $connection */
function pg_get_pid($connection): int {}
Expand Down
4 changes: 2 additions & 2 deletions ext/pgsql/pgsql_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: de1718d3e6e66dfade25462b8461983b914120ed */
* Stub hash: b996f10e06a18f0995a9614bd05340987beda8ea */

ZEND_BEGIN_ARG_INFO_EX(arginfo_pg_connect, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, connection_string, IS_STRING, 0)
Expand Down Expand Up @@ -386,7 +386,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_result_status, 0, 1, MAY_BE_S
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_get_notify, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_ARG_INFO(0, result)
ZEND_ARG_INFO(0, connection)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PGSQL_ASSOC")
ZEND_END_ARG_INFO()

Expand Down

0 comments on commit d1e590f

Please sign in to comment.