summaryrefslogtreecommitdiff
path: root/app/Model/Base.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/Base.php')
-rw-r--r--app/Model/Base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Model/Base.php b/app/Model/Base.php
index c1b2fae3..6fe3d74a 100644
--- a/app/Model/Base.php
+++ b/app/Model/Base.php
@@ -2,6 +2,8 @@
namespace Kanboard\Model;
+use PicoDb\Database;
+
/**
* Base model class
*
@@ -20,7 +22,7 @@ abstract class Base extends \Kanboard\Core\Base
*/
public function persist($table, array $values)
{
- return $this->db->transaction(function ($db) use ($table, $values) {
+ return $this->db->transaction(function (Database $db) use ($table, $values) {
if (! $db->table($table)->save($values)) {
return false;