Creation of dynamic property deprecated in PHP 8.2

Created on 25 July 2023, about 1 year ago
Updated 22 March 2024, 6 months ago

Problem/Motivation

Setting the uuid on the event object in ErrorPageExceptionLoggingSubscriber::onError triggers logging a notice which in turn can cause another issue created in Sentry/GlitchTip if using the Raven module.

Steps to reproduce

Just triggering an error should produce a debug entry in the dblog.

Proposed resolution

Just using a local variable won't suffice, as it seems that ErrorPageFinalExceptionSubscriber::onException looks for the property.

ErrorPageExceptionLoggingSubscriber could store a map of event objects to UUIDs, which ErrorPageFinalExceptionSubscriber could then consult.

Remaining tasks

Decide on implementation and implement.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇩🇰Denmark Xen

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

Comments & Activities

Production build 0.71.5 2024