Skip to content

Instantly share code, notes, and snippets.

@ichaykin
Created August 30, 2024 05:50
Show Gist options
  • Save ichaykin/f66b7d332dde3a053a95c756500c6554 to your computer and use it in GitHub Desktop.
Save ichaykin/f66b7d332dde3a053a95c756500c6554 to your computer and use it in GitHub Desktop.
diff --git a/app/Tygh/Backend/Database/Pdo.php b/app/Tygh/Backend/Database/Pdo.php
index eeafd47f21..dc3356d534 100644
--- a/app/Tygh/Backend/Database/Pdo.php
+++ b/app/Tygh/Backend/Database/Pdo.php
@@ -53,7 +53,10 @@ class Pdo implements IBackend
$user,
$passwd,
// phpcs:ignore
- [\PDO::ATTR_ERRMODE => \PDO::ERRMODE_SILENT]
+ [
+ \PDO::ATTR_ERRMODE => \PDO::ERRMODE_SILENT,
+ \PDO::ATTR_STRINGIFY_FETCHES => true
+ ]
);
} catch (PDOException $e) {
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment