Skip to content

Commit 9c5a28f

Browse files
committed
Match signature of close() in interface with the abstract class
1 parent 6309010 commit 9c5a28f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

system/Database/PreparedQueryInterface.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace CodeIgniter\Database;
1313

14+
use BadMethodCallException;
15+
1416
/**
1517
* Prepared query interface
1618
*/
@@ -34,8 +36,10 @@ public function prepare(string $sql, array $options = []);
3436

3537
/**
3638
* Explicity closes the statement.
39+
*
40+
* @throws BadMethodCallException
3741
*/
38-
public function close();
42+
public function close(): bool;
3943

4044
/**
4145
* Returns the SQL that has been prepared.

0 commit comments

Comments
 (0)