Skip to content

Commit

Permalink
Update library/Zend/Db/Adapter/Pdo/Sqlite.php
Browse files Browse the repository at this point in the history
Co-authored-by: Elan Ruusamäe <glen@pld-linux.org>
  • Loading branch information
hungtrinh and glensc authored Feb 6, 2023
1 parent 32a6ff3 commit b433af7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Db/Adapter/Pdo/Sqlite.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function __construct(array $config = [])

if (PHP_VERSION_ID >= 80100) {
// ensure $config['driver_options'] is an array
$config['driver_options'] = empty($config['driver_options']) ? array() : $config['driver_options'];
$config['driver_options'] = $config['driver_options'] ?? [];
if (!isset($config['driver_options'][PDO::ATTR_STRINGIFY_FETCHES])) {
$config['driver_options'][PDO::ATTR_STRINGIFY_FETCHES] = true;
}
Expand Down

0 comments on commit b433af7

Please sign in to comment.