From 285bd16b6de94a4de4d0760b6ab6bb7cb8924114 Mon Sep 17 00:00:00 2001 From: John Robinson Date: Mon, 23 Dec 2024 15:50:33 -0500 Subject: [PATCH] v5.4.3 (#14) --- CHANGELOG.md | 6 ++++++ README.md | 2 +- src/Query.php | 8 ++------ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3d70d2..23c8bac 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities +## [5.4.3] - 2024.12.23 + +### Added + +- Tested up to PHP v8.4. + ## [5.4.2] - 2024.11.28 ### Added diff --git a/README.md b/README.md index 83518e8..8d5bf76 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ This project is open source and available under the [MIT License](LICENSE). ## Requirements -* PHP `^8.0` +* PHP `^8.0` (Tested up to `8.4`) * PDO PHP extension ## Installation diff --git a/src/Query.php b/src/Query.php index 0726993..5a5f9c3 100644 --- a/src/Query.php +++ b/src/Query.php @@ -883,12 +883,8 @@ public function get(): array $result = $stmt->fetchAll(PDO::FETCH_ASSOC); - if (is_array($result)) { - - foreach ($result as $k => $v) { - $result[$k] = $this->formatResult($v); - } - + foreach ($result as $k => $v) { + $result[$k] = $this->formatResult($v); } return $result;