Skip to content

Commit db90247

Browse files
Adjust version threshold for new Mysql constants from 8.5 to 8.4
1 parent b3917e7 commit db90247

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Adapter/Mysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function getOptions(Config $config)
2424
$options = parent::getOptions($config);
2525
// In PHP 8.5+, driver-specific constants of the PDO class are deprecated,
2626
// but the replacements are only available since php 8.4
27-
if (version_compare(PHP_VERSION, '8.5.0', '<')) {
27+
if (version_compare(PHP_VERSION, '8.4.0', '<')) {
2828
$mysqlConstantPrefix = 'PDO::MYSQL_ATTR_';
2929
} else {
3030
$mysqlConstantPrefix = 'Pdo\Mysql::ATTR_';

0 commit comments

Comments
 (0)