View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037369 | mantisbt | bugtracker | public | 2026-09-05 13:01 | 2026-09-06 06:40 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.20.0 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037369: helper_parse_id() throws PHP warning when $p_id parameter is null (PHP 8.1) | ||||
| Description | The function's PHPDoc states that $p_id parameter should be a string, but in fact it can also be When this happens, PHP throws | ||||
| Additional Information | Regression introduced by MantisBT master c20e9622 / PHP 8.1 | ||||
| Tags | PHP 8.1 | ||||
|
MantisBT: master f72443f3 2026-09-05 09:51 Details Diff |
Fix PHP deprecation warning in helper_parse_id() PHPDoc states that $p_id should be a string, but in fact it can also be null (and possibly other types as well). Changing the PHPDoc type to mixed, and refactor the code to ensure we don't get DEPRECATED: trim(): Passing null to parameter 0000001 ($string) of type string is deprecated. Fixes 0037369 |
Affected Issues 0037369 |
|
| mod - core/helper_api.php | Diff File | ||