View Issue Details

IDProjectCategoryView StatusLast Update
0029846mantisbtbugtrackerpublic2022-07-13 13:53
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Target Version2.25.3Fixed in Version2.25.3 
Summary0029846: Passing null to parameter of type XXX is deprecated
Description

On PHP 8.1 with error_reporting = E_ALL, MantisBT triggers a series of deprecation warnings

  • implode(): Passing null to parameter 1 ($separator) of type array|string is deprecated in '.../mantisbt/core/event_api.php' line 274
  • preg_split(): Passing null to parameter 3 ($limit) of type int is deprecated in '.../mantisbt/core/string_api.php' line 549
  • preg_replace(): Passing null to parameter 3 ($subject) of type array|string is deprecated in '.../mantisbt/core/string_api.php' line 571
  • strcasecmp(): Passing null to parameter 1 ($string1) of type string is deprecated in '.../mantisbt/changelog_page.php' line 300
  • strcasecmp(): Passing null to parameter 1 ($string1) of type string is deprecated in '.../mantisbt/roadmap_page.php' line 410
  • trim(): Passing null to parameter 1 ($string) of type string is deprecated in '.../mantisbt/core/utility_api.php' line 76
  • str_repeat(): Passing null to parameter 2 ($times) of type int is deprecated in '.../mantisbt/core/summary_api.php' line 718
  • strcasecmp(): Passing null to parameter 1 ($string1) of type string is deprecated in '.../mantisbt/core/category_api.php' line 398
TagsPHP 8.1

Relationships

related to 0030777 closeddregad Scalar typehint is not supported in PHP 5.x 

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master-2.25 0b814f0f

2022-04-12 19:45

dregad


Details Diff
Fix various wrong parameter type deprecated warnings

Fixes 0029846
Affected Issues
0029846
mod - changelog_page.php Diff File
mod - core/category_api.php Diff File
mod - core/event_api.php Diff File
mod - core/string_api.php Diff File
mod - core/summary_api.php Diff File
mod - core/utility_api.php Diff File
mod - manage_plugin_page.php Diff File
mod - roadmap_page.php Diff File
mod - summary_page.php Diff File