Dependency Graph
View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035215 | mantisbt | code cleanup | public | 2024-12-30 06:23 | 2025-03-05 12:34 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Target Version | 2.28.0 | Fixed in Version | 2.28.0 | ||
Summary | 0035215: PHP 8.4: Implicitly nullable parameter types are deprecated | ||||
Description | MantisBT throws nearly 100 deprecation notices: Implicitly marking parameter XXX as nullable is deprecated, the explicit nullable type must be used instead | ||||
Tags | PHP 8.4 | ||||
BTW, which variant of nullable syntax will MantisBT use "?" or "|null"? |
|
@dregad
Manage > Users > UNUSED |
|
Thanks for testing. Not sure how I could have missed this :-/ If possible, I'd rather fix the calls to print_form_button() to provide an empty array, rather than changing the function signature to allow null. I'll have a closer look. |
|
This was also my preference. |
|
@dregad
PR with fixes of the calls https://github.com/mantisbt/mantisbt/pull/2093 |
|
I merged PR 2093 |
|
Another regression
Occurs when using plugin filters (e.g. FilterBugList plugin). |
|
And another...
Occurs in bug_report.php with a custom field of type Multiselection list or Checkbox. |
|
MantisBT: master c939e557 2025-01-26 04:54 Details Diff |
PHP 8.4: Implicitly nullable parameter declaration Adjust function declarations to fix deprecation notices, and adapt some PHPDoc blocks accordingly. Fixes 0035215 |
Affected Issues 0035215 |
|
mod - api/soap/mc_issue_api.php | Diff File | ||
mod - core/access_api.php | Diff File | ||
mod - core/bug_group_action_api.php | Diff File | ||
mod - core/category_api.php | Diff File | ||
mod - core/classes/BugFilterQuery.class.php | Diff File | ||
mod - core/classes/DbQuery.class.php | Diff File | ||
mod - core/custom_field_api.php | Diff File | ||
mod - core/custom_function_api.php | Diff File | ||
mod - core/database_api.php | Diff File | ||
mod - core/email_api.php | Diff File | ||
mod - core/exceptions/ClientException.php | Diff File | ||
mod - core/exceptions/LegacyApiFaultException.php | Diff File | ||
mod - core/exceptions/MantisException.php | Diff File | ||
mod - core/exceptions/ServiceException.php | Diff File | ||
mod - core/exceptions/StateException.php | Diff File | ||
mod - core/filter_api.php | Diff File | ||
mod - core/filter_form_api.php | Diff File | ||
mod - core/gpc_api.php | Diff File | ||
mod - core/html_api.php | Diff File | ||
mod - core/print_api.php | Diff File | ||
mod - core/summary_api.php | Diff File | ||
mod - core/version_api.php | Diff File | ||
mod - plugins/MantisGraph/core/graph_api.php | Diff File | ||
mod - plugins/MantisGraph/pages/issues_trend_graph.php | Diff File | ||
mod - summary_page.php | Diff File | ||
MantisBT: master ef3491c2 2025-02-10 16:59 Details Diff |
Fix print_form_button and db_query regressions Issue 0035215 |
Affected Issues 0035215 |
|
mod - core/news_api.php | Diff File | ||
mod - manage_proj_page.php | Diff File | ||
mod - manage_user_page.php | Diff File | ||
MantisBT: master c1edaa4a 2025-02-25 19:29 Details Diff |
Fix Argument must be of type array, null given BugFilterQuery::build_prop_plugin_filters() initializes $t_params = null instead of [], causing error in helper_convert_legacy_clause(). Regression introduced by c939e5574556a2986bdd23d2ba9369d03595c269. Issue 0035215 |
Affected Issues 0035215 |
|
mod - core/classes/BugFilterQuery.class.php | Diff File | ||
MantisBT: master c076bc56 2025-03-05 12:33 Details Diff |
Fix PHP TypeError calling gpc_get_string_array() Argument 2 passed to gpc_get_string_array() must be of the type array, null given, called in .../core/gpc_api.php on line 213 Regression introduced by c939e5574556a2986bdd23d2ba9369d03595c269. Fixes 0035215 |
Affected Issues 0035215 |
|
mod - core/gpc_api.php | Diff File |