Force integer type for aggregated metrics

This commit is contained in:
Frederic Guillot
2016-03-22 20:58:46 -04:00
parent 8768a4e369
commit 2425fd85c0
3 changed files with 4 additions and 3 deletions

View File

@@ -165,7 +165,7 @@ class ProjectDailyColumnStats extends Base
{
foreach ($metrics as $metric) {
if ($metric['day'] === $day && $metric['column_id'] == $column_id) {
return $metric[$field];
return (int) $metric[$field];
}
}