Fixes T13527. Some versions of PHP strictly require that we pass a string value, and reject "stringlike" objects (objects which implement "__toString()").
Details
Details
- Reviewers
- None
- Maniphest Tasks
- T13527: "mb_check_encoding()" may rase a warning if passed an object which implements "__toString()"
- Commits
- 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.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Lint
Lint Not Applicable - Unit
Tests Not Applicable