Skip to content

Commit 661c5ee

Browse files
committed
Fix implicitly nullable parameter type for pg_put_copy_end()
1 parent 162a311 commit 661c5ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/pgsql/pgsql.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ function pg_result_memory_size(PgSql\Result $result): int {}
951951
function pg_change_password(PgSql\Connection $connection, string $user, #[\SensitiveParameter] string $password): bool {}
952952

953953
function pg_put_copy_data(PgSql\Connection $connection, string $cmd): int {}
954-
function pg_put_copy_end(PgSql\Connection $connection, string $error = null): int {}
954+
function pg_put_copy_end(PgSql\Connection $connection, ?string $error = null): int {}
955955
}
956956

957957
namespace PgSql {

ext/pgsql/pgsql_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)