mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 19:16:37 +00:00
Upgraded to PHP 8.1
This commit is contained in:
@@ -69,6 +69,7 @@ class DatabaseService
|
||||
{
|
||||
$pdo = new \PDO('sqlite:' . $this->GetDbFilePath());
|
||||
$pdo->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
|
||||
$pdo->setAttribute(\PDO::ATTR_STRINGIFY_FETCHES, true);
|
||||
|
||||
$pdo->sqliteCreateFunction('regexp', function ($pattern, $value) {
|
||||
mb_regex_encoding('UTF-8');
|
||||
|
Reference in New Issue
Block a user