From 90a1af38ee68820d5c3372312d8d76c94fb5866e Mon Sep 17 00:00:00 2001 From: "Kamshory, MT" Date: Wed, 24 Sep 2025 18:53:18 +0700 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3377e3a..2ac6e46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1413,3 +1413,22 @@ Developers who rely on these math utilities should install the new package separ ```bash composer require planetbiru/math +``` + +## New Feature: PDO Connection Verification Method + +A new method isPdoConnected() has been introduced to allow developers to verify not only the TCP-level connection, but also the ability of PHP to execute SQL statements on the database. + +Here’s the corrected version with improved grammar and clarity: + + +## Bug Fix: Handle Exception in method getDatabaseCredentialsFromPdo($pdo, $driver, $dbType) + +If an error occurs when executing: + +```php +$dsn = $pdo->getAttribute(PDO::ATTR_CONNECTION_STATUS); +``` + +`getDatabaseCredentialsFromPdo($pdo, $driver, $dbType)` will return an empty instance of `SecretObject`. +