1
0
Fork 0

Merge pull request #8804 from MrPetovan/bug/warnings

Add type hint to Database::insert
This commit is contained in:
Michael Vogel 2020-06-25 08:37:41 +02:00 committed by GitHub
commit 1625dfa0a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');