Skip to content

Make some strlen() calls be safe for PHP 8.0

Aklapper requested to merge T342244php8 into wmf/stable

Since PHP 8.0, passing null to strlen() is deprecated. Thus instead check if a variable (whether string or not) is null or empty if we do not care about the actual byte length of a string anyway.

Bug: T342244

Merge request reports