Homestyx hydra
Diffusion hydra 2ffbef882038

Fix PHP 8.1 "trim(null)" exception which blocks rendering Reports' Burnup Rate…

Description

Fix PHP 8.1 "trim(null)" exception which blocks rendering Reports' Burnup Rate page

Summary:
Since PHP 8.1, passing a null string to trim() is deprecated.

Thus first check that $row['oldValue'] is not null before trimming it.

Closes T15392

Test Plan: Applied this change; afterwards "Burnup Rate" page at /maniphest/report/burn/ got correctly rendered in web browser.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15392

Differential Revision: https://we.phorge.it/D25224

Details

Provenance
Andre KlapperAuthored on May 23 2023, 5:57 AM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:538cccc63e0e: Fix PHP 8.1 "strlen(null)" exception setting Story Points on a Task
Branches
Unknown
Tags
Unknown

Event Timeline