Can you try (assuming this is your code)
public function getReceiptEmailsAttribute($value)
{
return json_decode($value ?? '[]');
}
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey all! Any idea what's the problem here? Just installed Laravel Spark by following installation guide, line by line, and when I try to access to billing page, I got this.
LOG.warning: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /site_path/vendor/laravel/spark-stripe/src/Billable.php on line 148
and that Billable.php line 148 is
/**
* Gert the receipt emails.
*
* @param mixed $value
* @return array
*/
public function getReceiptEmailsAttribute($value)
{
return json_decode($value) ?: [];
}
What I am missing here, just can't figure this out. I am registered and logged in.
Thanks for all help!
@Sinnbeck Okey I figure this out. Apparently if you don't have SVG in config/spark.php -> logo. it will threw this error.. Just little misleading that error tho? Yes, I was reinstalling Spark but totally forgot to remove config file and brand settings within.
Please or to participate in this conversation.