Files
InvoiceShelf/config
Darko Gjorgjijoski 78b2e35a2e fix(config): resolve the mysql SSL CA attribute per PHP version (#701)
PHP 8.5 deprecated PDO::MYSQL_ATTR_SSL_CA in favour of
Pdo\Mysql::ATTR_SSL_CA, so on 8.5 every test in the suite was reported
as deprecated rather than passed — noise that would hide a real one.

Pdo\Mysql does not exist before 8.5 and this package supports ^8.4, so
the constant is resolved at runtime; the untaken ternary branch is never
looked up, which keeps 8.4 working. The lookup stays behind the
extension_loaded() check because neither name is defined when pdo_mysql
is missing.

Verified against both runtimes: with MYSQL_ATTR_SSL_CA set, 8.4 resolves
to attribute 1009 and 8.5 to 1008 — each version's own value, matching
what the previous code produced there.

Same change as InvoiceShelf/InvoiceShelf#696 on 3.x.
2026-07-29 11:50:17 +02:00
..
2026-03-21 18:59:53 +01:00
2026-03-21 18:59:53 +01:00
2019-11-11 12:16:00 +05:30
2026-03-21 19:14:51 +01:00
2026-04-02 11:56:16 +02:00
2025-08-31 03:04:31 +02:00
2026-03-21 18:59:53 +01:00
2025-01-12 10:49:04 +01:00
2026-03-21 18:59:53 +01:00