MantisBT: master f72443f3

Author Committer Branch Timestamp Parent
dregad dregad master 2026-09-05 09:51 master b92b04d7
Affected Issues  0037369: helper_parse_id() throws PHP warning when $p_id parameter is `null` (PHP 8.1)
Changeset

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

mod - core/helper_api.php Diff File