From 06ec2a05ceb1a7bce71655f392b15bfd8f7f4130 Mon Sep 17 00:00:00 2001 From: manofstrong <55279335+manofstrong@users.noreply.github.com> Date: Tue, 13 Sep 2022 18:10:26 +0300 Subject: [PATCH] fix: updating function aggregate to return int too private function aggregate returning only string or null in strict mode is causing public function count to return a fatal error --- src/Medoo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Medoo.php b/src/Medoo.php index 6d4bad89..32ad4b71 100644 --- a/src/Medoo.php +++ b/src/Medoo.php @@ -2002,7 +2002,7 @@ public function rand(string $table, $join = null, $columns = null, $where = null * @param array $where * @return string|null */ - private function aggregate(string $type, string $table, $join = null, $column = null, $where = null): ?string + private function aggregate(string $type, string $table, $join = null, $column = null, $where = null): null|string|int { $map = [];