mirror of
https://github.com/flarum/framework.git
synced 2025-06-04 14:54:32 +08:00
fix: remove deprecation warning for decoding null values
This commit is contained in:
@ -81,7 +81,9 @@ class Notification extends AbstractModel
|
||||
*/
|
||||
public function getDataAttribute($value)
|
||||
{
|
||||
return json_decode($value, true);
|
||||
return $value !== null
|
||||
? json_decode($value, true)
|
||||
: null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user