Generates a fatal error - ($value) must be of type Countable|array The code: if (!count($dsn)) { return $parsed; } Suggested fix: if (!count(array($dsn))) { return $parsed; }
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8b461858eff28db7abaa758fa41847622ee48cd1 commit 8b461858eff28db7abaa758fa41847622ee48cd1 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-09-04 09:04:43 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-09-04 09:04:43 +0000 databases/pear-MDB2: Fix PHP error - Bump PORTREVISION for package change PR: 272927 Reported by: Joel Rodriguez <joel@tahoestores.com> Obtained from: https://github.com/pear/MDB2/commit/ee0563d1ac6ed2694c48701e24ed7c352edb6639 databases/pear-MDB2/Makefile | 1 + databases/pear-MDB2/files/patch-MDB2.php (new) | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+)
Committed. Thanks!