mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Fix syntax in PHP 5.5
This commit is contained in:
parent
1327ea985e
commit
f66ae54c15
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user