Deprecated warning: null values can't be passed to unserialize() on PHP 8.1

Created on 13 July 2023, over 1 year ago
Updated 18 February 2024, 11 months ago

Problem/Motivation

I spotted a deprecation warning in my logs:

Deprecated function: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in Drupal\queue_ui\Form\ItemDetailForm->buildForm() (line 75 of queue_ui/src/Form/ItemDetailForm.php)

Steps to reproduce

Use version 3.1.3 with PHP 8.1

Proposed resolution

Handle the null parameters better.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Closed: duplicate

Version

3.1

Component

Code

Created by

🇫🇮Finland masipila

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024