This edit should fix completelyis a fix for PHP 8.1 deprecation of strlen(NULL), for these Phorge components in PHP 8.2::
- src/view (complete fix)
Also, this edit fix most parts of this component:
- src/infrastructure (partial, needs more patches)
AThe strlen() was usual, the risk of this change is that exceptions may occur due toed in Phabricator to check if a generic value was a string and not
really weird stuff coming in as inputempty. In any caseFor this reason, if it happens,we adopt phutil_nonempty_string() that does exactly that.
Note: this may highlight other absurd input values that might be worth correcting
it minstead of just be evaluated on a case-by-case basisignoring. If your phutil_nonempty_string() throws an exception, because in this case,just
the previously present code (strlen) didn't make sense anyway eitherreport it to Phorge to fix together that specific corner case.
Ref T15190
Ref T15064