Skip to content

Commit 2120a9f

Browse files
committed
Add comment explaining PDO attribute default
1 parent c66bfd9 commit 2120a9f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wp-includes/sqlite-ast/class-wp-pdo-mysql-on-sqlite.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ class WP_PDO_MySQL_On_SQLite extends PDO {
451451
* @var array<int, mixed>
452452
*/
453453
private $pdo_attributes = array(
454+
// On PHP < 8.1, PDO::ATTR_STRINGIFY_FETCHES is enabled by default.
454455
PDO::ATTR_STRINGIFY_FETCHES => PHP_VERSION_ID < 80100 ? true : false,
455456
);
456457

0 commit comments

Comments
 (0)