Fixes T13527. Some versions of PHP strictly require that we pass a string value, and reject "stringlike" objects (objects which implement "__toString()").
- Maniphest Tasks
- T13527: "mb_check_encoding()" may rase a warning if passed an object which implements "__toString()"
- rARCc1d12ff7784b: (stable) Work around "mb_check_encoding(<stringlike-object>)" warning in…
rARC696ec3f97585: Work around "mb_check_encoding(<stringlike-object>)" warning in particular…
Ran unit test, although this is somewhat aspirational because my local PHP version isn't affected.