php 8.2 warning fixes

Created on 4 April 2024, 8 months ago
Updated 5 May 2024, 7 months ago

Problem/Motivation

Avoid the warning

Deprecated function: unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in WysiwygProfileController->attachLoad() (line 39 of /data/www/front-truc.viadirect.com/www/sites/all/modules/contrib/wysiwyg/wysiwyg.module).

when running site under php 8.2

Proposed resolution

takes care of testing that $record->settings exists and is a string before feeding it to unserialize function

πŸ› Bug report
Status

Needs review

Version

2.10

Component

Code

Created by

πŸ‡«πŸ‡·France ceonizm Marseille

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024