Merge pull request #15 from CachetHQ/2.4

Update from upstream repo CachetHQ/Cachet
This commit is contained in:
Davide Bellini
2016-10-10 08:57:33 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -222,6 +222,7 @@ EINCIDENT;
];
Incident::truncate();
IncidentUpdate::truncate();
foreach ($defaultIncidents as $defaultIncident) {
$incident = Incident::create($defaultIncident);

View File

@@ -26,7 +26,7 @@ class Repository
*
* @var string[]
*/
const NOT_BOOL = [
protected $notBooleans = [
'app_incident_days',
];
@@ -154,7 +154,7 @@ class Repository
return $value;
}
if (!in_array($key, self::NOT_BOOL) && in_array($value, ['0', '1'])) {
if (!in_array($key, $this->notBooleans) && in_array($value, ['0', '1'])) {
return (bool) $value;
}