summaryrefslogtreecommitdiff
path: root/ext/sqlite3/sqlite3.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-08-07 21:50:02 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-08-13 14:47:18 +0200
commit2803c8fb8dafea651e13bb28da753cbbf7458792 (patch)
treea7c4f1c0d83327a649b778ed931407c2b2161b1b /ext/sqlite3/sqlite3.stub.php
parentf3d6203b0b83d2167f083616caf462eda1231d8f (diff)
downloadphp-git-2803c8fb8dafea651e13bb28da753cbbf7458792.tar.gz
Add all the missing parameter types to stubs
Closes GH-5955
Diffstat (limited to 'ext/sqlite3/sqlite3.stub.php')
-rw-r--r--ext/sqlite3/sqlite3.stub.php20
1 files changed, 15 insertions, 5 deletions
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() {}