1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix implicitly nullable parameter type for pg_put_copy_end()

This commit is contained in:
Máté Kocsis
2024-05-28 20:11:01 +02:00
parent 162a311cc8
commit 661c5ee546
2 changed files with 3 additions and 3 deletions

View File

@@ -951,7 +951,7 @@ namespace {
function pg_change_password(PgSql\Connection $connection, string $user, #[\SensitiveParameter] string $password): bool {}
function pg_put_copy_data(PgSql\Connection $connection, string $cmd): int {}
function pg_put_copy_end(PgSql\Connection $connection, string $error = null): int {}
function pg_put_copy_end(PgSql\Connection $connection, ?string $error = null): int {}
}
namespace PgSql {

View File

@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: b3645285a405c83fec3ae55195ed577cec5f5356 */
* Stub hash: edc626b255224ed76333223c90cfab062415637f */
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_connect, 0, 1, PgSql\\Connection, MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, connection_string, IS_STRING, 0)
@@ -478,7 +478,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_put_copy_end, 0, 1, IS_LONG, 0)
ZEND_ARG_OBJ_INFO(0, connection, PgSql\\Connection, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error, IS_STRING, 0, "null")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error, IS_STRING, 1, "null")
ZEND_END_ARG_INFO()
ZEND_FUNCTION(pg_connect);