mirror of
https://github.com/flarum/core.git
synced 2025-08-04 07:27:39 +02: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)
|
public function getDataAttribute($value)
|
||||||
{
|
{
|
||||||
return json_decode($value, true);
|
return $value !== null
|
||||||
|
? json_decode($value, true)
|
||||||
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user