mirror of
https://github.com/koel/koel
synced 2024-11-27 22:40:26 +00:00
Fix get preferences error
This commit is contained in:
parent
ca2e737554
commit
a31664adf7
1 changed files with 1 additions and 1 deletions
|
@ -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) ?: [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue