mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Narrow bool return types to true when possible
This commit is contained in:
@@ -469,7 +469,7 @@ namespace {
|
||||
|
||||
function pg_connect_poll(PgSql\Connection $connection): int {}
|
||||
|
||||
function pg_close(?PgSql\Connection $connection = null): bool {}
|
||||
function pg_close(?PgSql\Connection $connection = null): true {}
|
||||
|
||||
/** @refcount 1 */
|
||||
function pg_dbname(?PgSql\Connection $connection = null): string {}
|
||||
@@ -691,7 +691,7 @@ namespace {
|
||||
|
||||
function pg_trace(string $filename, string $mode = "w", ?PgSql\Connection $connection = null, int $trace_mode = 0): bool {}
|
||||
|
||||
function pg_untrace(?PgSql\Connection $connection = null): bool {}
|
||||
function pg_untrace(?PgSql\Connection $connection = null): true {}
|
||||
|
||||
/**
|
||||
* @param PgSql\Connection $connection
|
||||
|
||||
Reference in New Issue
Block a user