Fix syntax in PHP 5.5

This commit is contained in:
James Brooks 2016-10-09 12:35:15 +01:00
parent 1327ea985e
commit f66ae54c15

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;
}