View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034106 | mantisbt | code cleanup | public | 2024-03-15 20:04 | 2024-05-12 12:34 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 2.26.2 | Fixed in Version | 2.26.2 | ||
Summary | 0034106: Deprecated creation of dynamic properties in BugData class | ||||
Description | Roadmap and Changelog pages throw deprecation warnings on PHP 8.2: Creation of dynamic property BugData::$source_bug_id is deprecated' in '.../core/bug_api.php' line 380 This happens when calling BugData::loadrow() with a row from a query containing extra columns (in this case, relationship information). The same error was reported with a different, unknown context, see 0034436:0068913 BugData::__set() should ignore unknown columns. | ||||
Tags | PHP 8.2 | ||||
MantisBT master-2.26 1cd25800 introduced a regression in the Bug Dependency graph, see attached screenshot. |
|
To fix the regression AND the deprecation warning, we have 2 options:
We'll go for option 1 for now, follow-up in 0034436 for the cleaner option 2. |
|
MantisBT: master-2.26 1cd25800 2024-03-15 20:12 Details Diff |
Ignore unknown properties in BugData::__set() Avoids PHP 8.2 "Creation of dynamic property" deprecation warnings in Roadmap and Changelog pages. Fixes 0034106 |
Affected Issues 0034106 |
|
mod - core/bug_api.php | Diff File | ||
MantisBT: master-2.26 851527a2 2024-05-06 19:08 Details Diff |
Revert "Ignore unknown properties in BugData::__set()" This reverts commit 1cd258007d52f5cda5014049e2d729165102e5ee, which introduced a regression when displaying Bug Dependency graph. Issue 0034106 |
Affected Issues 0034106 |
|
mod - core/bug_api.php | Diff File | ||
MantisBT: master-2.26 5442e838 2024-05-06 19:10 Details Diff |
Set AllowDynamicProperties for BugData class Fixes 0034106 |
Affected Issues 0034106 |
|
mod - core/bug_api.php | Diff File |