Problem/Motivation

If you have Paragraphs Report installed and enabled, saving a node will cause a json_decode deprecation warning if you are using PHP 8+.

Steps to reproduce

* Install Paragraphs Report module (composer, etc.)
* Enable in /admin/modules
* Save a node

Proposed resolution

Change function call in src/ParagraphsReport.php from Json::decode(val)</decode> to <code>Json::decode(val ?? ''). I've included an attached patch.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Comments

mjchadwick created an issue. See original summary.

sergiu stici’s picture

Status: Active » Reviewed & tested by the community

patch looks good

aisforaaron’s picture

I pushed this fix up to the 8.x-1.x-dev branch.

aisforaaron’s picture

Assigned: Unassigned » aisforaaron
generalredneck’s picture

Version: 8.x-1.1 » 8.x-1.x-dev
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.