Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

The category layout decodes $item->images with json_decode($item->images). The column allows NULL (e.g. for weblinks created through the API, CLI import or older versions), and passing null to json_decode() raises "Passing null to parameter #1 ($json) of type string is deprecated" on PHP 8.1+. The value is now cast to string.

Testing Instructions

  • Set images of a weblink to NULL in the database.
  • Enable Description in the category options, with PHP deprecation logging/display enabled, and open the category on the frontend.

Expected result

No deprecation message.

Actual result

Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment