summaryrefslogtreecommitdiff
path: root/app/Model/ProjectDailyColumnStats.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/ProjectDailyColumnStats.php')
-rw-r--r--app/Model/ProjectDailyColumnStats.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Model/ProjectDailyColumnStats.php b/app/Model/ProjectDailyColumnStats.php
index abab0241..8ed6137f 100644
--- a/app/Model/ProjectDailyColumnStats.php
+++ b/app/Model/ProjectDailyColumnStats.php
@@ -2,6 +2,8 @@
namespace Kanboard\Model;
+use PicoDb\Database;
+
/**
* Project Daily Column Stats
*
@@ -32,7 +34,7 @@ class ProjectDailyColumnStats extends Base
{
$status = $this->config->get('cfd_include_closed_tasks') == 1 ? array(Task::STATUS_OPEN, Task::STATUS_CLOSED) : array(Task::STATUS_OPEN);
- return $this->db->transaction(function ($db) use ($project_id, $date, $status) {
+ return $this->db->transaction(function (Database $db) use ($project_id, $date, $status) {
$column_ids = $db->table(Board::TABLE)->eq('project_id', $project_id)->findAllByColumn('id');