Commit 1749210
fix: avoid deprecated PDO::MYSQL_ATTR_SSL_CA on PHP 8.5
PHP 8.5 deprecates PDO::MYSQL_ATTR_SSL_CA in favour of Pdo\Mysql::ATTR_SSL_CA,
which doesn't exist on PHP 8.3 (our target / CI version). Select the new
constant only when the runtime defines it, falling back to the old one
otherwise. defined() doesn't trigger the deprecation, so 8.5 stays clean
while 8.3 keeps working.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7ad96b6 commit 1749210
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
0 commit comments