From a31664adf7e44b7a8af1c060ff8f2cb39d9d0b57 Mon Sep 17 00:00:00 2001 From: Phan An Date: Wed, 29 Aug 2018 15:01:53 +0700 Subject: [PATCH] Fix get preferences error --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/User.php b/app/Models/User.php index 833b3991..aed8c1cf 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -115,7 +115,7 @@ class User extends Authenticatable * * @return mixed[] */ - public function getPreferencesAttribute(string $value): array + public function getPreferencesAttribute(?string $value): array { $preferences = unserialize($value) ?: [];