PHP 8.1 deprecation notices

Created on 13 September 2023, about 1 year ago
Updated 1 April 2024, 8 months ago

Problem/Motivation

When running this module on PHP 8.1 you get some deprecation errors on the trim function with empty string.

Steps to reproduce

Use the module on PHP8.1 and sync events with an empty description for example.

Proposed resolution

Apply the patch in attachment.

🐛 Bug report
Status

Fixed

Version

2.5

Component

Code

Created by

🇧🇪Belgium dtrdewaele

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

Comments & Activities

  • Issue created by @dtrdewaele
    • rivimey committed adfdd229 on 8.x-2.x
      Issue #3387065: PHP 8.1 deprecation notices (+ @rivimey tweak for "...
  • Status changed to Fixed 8 months ago
  • 🇬🇧United Kingdom rivimey

    This should be a backport of the equivalent changes on the 3.0.x branch, found in commit 40331ac3cba9929864f4a1c0c49f636a3af23811

    I have committed this to both 2.x branche but have removed the 'if no display name use email' as this could be considered a bug by some users. I suggest such changes are added in a hook, if required.

    [The 3.x branch already included this.]

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

Production build 0.71.5 2024