summaryrefslogtreecommitdiff
path: root/app/Model/Base.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-19 21:32:18 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-19 21:32:18 -0400
commit039baacaa036360de511a00ae231ac12b268908d (patch)
tree265761cfbcb794bb3f5138d1e0d4e9f1eb4009c0 /app/Model/Base.php
parent7303a79b503dde63c627675ce4155f96c4e4dbd3 (diff)
Cosmetic fixes
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;