From 5cf5869b046ad3c798b7916f6a7acc442f582754 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 24 Jun 2020 09:36:34 -0400 Subject: [PATCH] Add type hint to Database::insert - Will escalate warning to fatal error in https://github.com/friendica/friendica/issues/8474#issuecomment-646802016 --- src/Database/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/Database.php b/src/Database/Database.php index 806b2b86bb..897845ce0c 100644 --- a/src/Database/Database.php +++ b/src/Database/Database.php @@ -979,7 +979,7 @@ class Database * @return boolean was the insert successful? * @throws \Exception */ - public function insert($table, $param, $on_duplicate_update = false) + public function insert($table, array $param, bool $on_duplicate_update = false) { if (empty($table) || empty($param)) { $this->logger->info('Table and fields have to be set');