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);