Skip to content

Commit 2d8b83d

Browse files
committed
Fix return type of SQLite3::close()
1 parent 28536ce commit 2d8b83d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

ext/sqlite3/sqlite3.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function __construct(string $filename, int $flags = SQLITE3_OPEN_READWRIT
282282
public function open(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryptionKey = ""): void {}
283283

284284
/** @tentative-return-type */
285-
public function close(): true {}
285+
public function close(): bool {}
286286

287287
/** @tentative-return-type */
288288
public static function version(): array {}
@@ -367,7 +367,7 @@ public function bindValue(string|int $param, mixed $value, int $type = SQLITE3_T
367367
public function clear(): bool {}
368368

369369
/** @tentative-return-type */
370-
public function close(): bool {}
370+
public function close(): true {}
371371

372372
/** @tentative-return-type */
373373
public function execute(): SQLite3Result|false {}

ext/sqlite3/sqlite3_arginfo.h

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

0 commit comments

Comments
 (0)