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:
@@ -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 {
|
||||
|
||||
4
ext/pgsql/pgsql_arginfo.h
generated
4
ext/pgsql/pgsql_arginfo.h
generated
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user