Scrutinizer php fixes

This commit is contained in:
Dennis Eichhorn 2017-11-08 22:00:34 +01:00
parent fb7972b387
commit 40c45b7085
2 changed files with 9 additions and 3 deletions

View File

@ -71,7 +71,7 @@ class Task implements \JsonSerializable
/**
* Type.
*
* @var TaskType
* @var int
* @since 1.0.0
*/
protected $type = TaskType::SINGLE;
@ -79,11 +79,17 @@ class Task implements \JsonSerializable
/**
* Status.
*
* @var TaskStatus
* @var int
* @since 1.0.0
*/
protected $status = TaskStatus::OPEN;
/**
* Task can be closed by user.
*
* @var bool
* @since 1.0.0
*/
protected $isClosable = true;
/**

View File

@ -139,7 +139,7 @@ class TaskMapper extends DataMapperAbstract
$count = $sth->fetchAll()[0][0] ?? 0;
} catch (\Exception $e) {
return false;
return -1;
}
return $count;