Page MenuHomePhabricator

Work around "mb_check_encoding(<stringlike-object>)" warning in particular versions of PHP
ClosedPublic

Authored by epriestley on Apr 30 2020, 2:14 PM.

Details

Summary

Fixes T13527. Some versions of PHP strictly require that we pass a string value, and reject "stringlike" objects (objects which implement "__toString()").

Test Plan

Ran unit test, although this is somewhat aspirational because my local PHP version isn't affected.

Diff Detail

Repository
rARC Arcanist
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.