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
| Comment | File | Size | Author |
|---|---|---|---|
| json_decode_php8_deprecation_fix.patch | 1.31 KB | mjchadwick |
Comments
Comment #2
sergiu stici commentedpatch looks good
Comment #3
aisforaaron commentedI pushed this fix up to the 8.x-1.x-dev branch.
Comment #4
aisforaaron commentedComment #5
generalredneck