Upgraded to PHP 8.1

This commit is contained in:
Bernd Bestel
2022-12-10 15:19:11 +01:00
parent 84e3707f4f
commit 38a4ad8ec4
9 changed files with 124 additions and 89 deletions

View File

@@ -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');