From 58132dfd798a37e9824e98182ec118fdc746efa4 Mon Sep 17 00:00:00 2001 From: staabm <120441+staabm@users.noreply.github.com> Date: Tue, 3 Dec 2024 19:35:23 +0000 Subject: [PATCH] Automatically regenerate the files --- generated/pgsql.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generated/pgsql.php b/generated/pgsql.php index 346519fb..0e2bfea1 100644 --- a/generated/pgsql.php +++ b/generated/pgsql.php @@ -1236,6 +1236,8 @@ function pg_result_seek($result, int $row): void * @param string $table_name Name of the table from which to select rows. * @param array $conditions An array whose keys are field names in the table table_name, * and whose values are the conditions that a row must meet to be retrieved. + * As of PHP 8.4.0, when an empty array is provided, no conditions will apply. + * Previously, the function failed with an empty conditions argument. * @param int $flags Any number of PGSQL_CONV_FORCE_NULL, * PGSQL_DML_NO_CONV, * PGSQL_DML_ESCAPE, @@ -1256,7 +1258,7 @@ function pg_result_seek($result, int $row): void * @throws PgsqlException * */ -function pg_select($connection, string $table_name, array $conditions, int $flags = PGSQL_DML_EXEC, int $mode = PGSQL_ASSOC) +function pg_select($connection, string $table_name, array $conditions = [], int $flags = PGSQL_DML_EXEC, int $mode = PGSQL_ASSOC) { error_clear_last(); $safeResult = \pg_select($connection, $table_name, $conditions, $flags, $mode);