From 2803c8fb8dafea651e13bb28da753cbbf7458792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 7 Aug 2020 21:50:02 +0200 Subject: Add all the missing parameter types to stubs Closes GH-5955 --- ext/sqlite3/sqlite3.stub.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'ext/sqlite3/sqlite3.stub.php') diff --git a/ext/sqlite3/sqlite3.stub.php b/ext/sqlite3/sqlite3.stub.php index 1d6357c3e1..bae34bd0ff 100644 --- a/ext/sqlite3/sqlite3.stub.php +++ b/ext/sqlite3/sqlite3.stub.php @@ -59,13 +59,23 @@ class SQLite3 /** @return mixed */ public function querySingle(string $query, bool $entire_row = false) {} - /** @return bool */ + /** + * @param callable $callback + * @return bool + */ public function createFunction(string $name, $callback, int $argument_count = -1, int $flags = 0) {} - /** @return bool */ + /** + * @param callable $step_callback + * @param callable $final_callback + * @return bool + */ public function createAggregate(string $name, $step_callback, $final_callback, int $argument_count = -1) {} - /** @return bool */ + /** + * @param callable $callback + * @return bool + */ public function createCollation(string $name, $callback) {} /** @return resource|false */ @@ -86,10 +96,10 @@ class SQLite3Stmt private function __construct(SQLite3 $sqlite3, string $sql) {} /** @return bool */ - public function bindParam($param_number, &$param, int $type = SQLITE3_TEXT) {} + public function bindParam(string|int $param_number, mixed &$param, int $type = SQLITE3_TEXT) {} /** @return bool */ - public function bindValue($param_number, $param, int $type = SQLITE3_TEXT) {} + public function bindValue(string|int $param_number, mixed $param, int $type = SQLITE3_TEXT) {} /** @return bool */ public function clear() {} -- cgit v1.2.1