From f66ae54c158c28dbb6cdc47963bb349df2b59bc9 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 9 Oct 2016 12:35:15 +0100 Subject: [PATCH] Fix syntax in PHP 5.5 --- app/Settings/Repository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Settings/Repository.php b/app/Settings/Repository.php index 6b398bce..4f3fdcd9 100644 --- a/app/Settings/Repository.php +++ b/app/Settings/Repository.php @@ -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; }