diff --git a/includes/dbFacile.php b/includes/dbFacile.php index 955eea910b67cc988913ce1518efc1257a030c9d..04df31f8c8ef195ce659fc5f75152f0e5ba480e4 100644 --- a/includes/dbFacile.php +++ b/includes/dbFacile.php @@ -60,7 +60,7 @@ function dbQuery($sql, $parameters = []) * @deprecated Please use Eloquent instead; https://laravel.com/docs/eloquent#inserting-and-updating-models * @see https://laravel.com/docs/eloquent#inserting-and-updating-models */ -function dbInsert($data, $table): int|null +function dbInsert($data, $table): ?int { $sql = 'INSERT IGNORE INTO `' . $table . '` (`' . implode('`,`', array_keys($data)) . '`) VALUES (' . implode(',', dbPlaceHolders($data)) . ')';