Fix get preferences error

This commit is contained in:
Phan An 2018-08-29 15:01:53 +07:00
parent ca2e737554
commit a31664adf7

View file

@ -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) ?: [];