From 6b7257a6c431cc77e6d76ddf3136c399d34d567b Mon Sep 17 00:00:00 2001 From: "J. King" Date: Tue, 2 Mar 2021 11:04:42 -0500 Subject: [PATCH] Work around more MySQL stupidity --- lib/Db/PDOError.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Db/PDOError.php b/lib/Db/PDOError.php index bd15dc25..03035516 100644 --- a/lib/Db/PDOError.php +++ b/lib/Db/PDOError.php @@ -16,9 +16,9 @@ trait PDOError { $err = $this->db->errorInfo(); } if ($err[0] === "HY000") { - return static::buildEngineException($err[1], $err[2]); + return static::buildEngineException((string) $err[1], (string) $err[2]); } else { - return static::buildStandardException($err[0], $err[2]); + return static::buildStandardException((string) $err[0], (string) $err[2]); } } }