Skip to content

Commit 789b489

Browse files
committedAug 13, 2024
PDO: error mode is ERRMODE_EXCEPTION by default
1 parent 4370e74 commit 789b489

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed
 

‎src/Caching/Storages/SQLiteJournal.php

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ private function open(): void
4040
}
4141

4242
$this->pdo = new \PDO('sqlite:' . $this->path);
43-
$this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
4443
$this->pdo->exec('
4544
PRAGMA foreign_keys = OFF;
4645
PRAGMA journal_mode = WAL;

‎src/Caching/Storages/SQLiteStorage.php

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function __construct(string $path)
2828
}
2929

3030
$this->pdo = new \PDO('sqlite:' . $path);
31-
$this->pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
3231
$this->pdo->exec('
3332
PRAGMA foreign_keys = ON;
3433
CREATE TABLE IF NOT EXISTS cache (

0 commit comments

Comments
 (0)
Failed to load comments.