Skip to content

Commit b981d4a

Browse files
committed
Declare true return type for ext/odbc functions
1 parent 7c85104 commit b981d4a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ext/odbc/odbc.stub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@
315315
function odbc_close_all(): void {}
316316

317317
/** @param resource $statement */
318-
function odbc_binmode($statement, int $mode): bool {}
318+
function odbc_binmode($statement, int $mode): true {}
319319

320320
/** @param resource $statement */
321-
function odbc_longreadlen($statement, int $length): bool {}
321+
function odbc_longreadlen($statement, int $length): true {}
322322

323323
/**
324324
* @param resource $odbc
@@ -377,7 +377,7 @@ function odbc_result($statement, string|int $field): string|bool|null {}
377377
function odbc_result_all($statement, string $format = ""): int|false {}
378378

379379
/** @param resource $statement */
380-
function odbc_free_result($statement): bool {}
380+
function odbc_free_result($statement): true {}
381381

382382
/**
383383
* @return resource|false

ext/odbc/odbc_arginfo.h

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

0 commit comments

Comments
 (0)