aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/PdoSqlite.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Minz/PdoSqlite.php')
-rw-r--r--lib/Minz/PdoSqlite.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Minz/PdoSqlite.php b/lib/Minz/PdoSqlite.php
index 1fd5c8d7a..cecc68a64 100644
--- a/lib/Minz/PdoSqlite.php
+++ b/lib/Minz/PdoSqlite.php
@@ -7,7 +7,10 @@ declare(strict_types=1);
*/
class Minz_PdoSqlite extends Minz_Pdo {
- /** @param array<int,int|string|bool>|null $options */
+ /**
+ * @param array<int,int|string|bool>|null $options
+ * @throws PDOException
+ */
public function __construct(string $dsn, ?string $username = null, ?string $passwd = null, ?array $options = null) {
parent::__construct($dsn, $username, $passwd, $options);
$this->exec('PRAGMA foreign_keys = ON;');
@@ -20,6 +23,7 @@ class Minz_PdoSqlite extends Minz_Pdo {
/**
* @param string|null $name
* @return string|false
+ * @throws PDOException if the attribute `PDO::ATTR_ERRMODE` is set to `PDO::ERRMODE_EXCEPTION`
*/
#[\ReturnTypeWillChange]
public function lastInsertId($name = null) {