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.
Tags
None
Referenced Files
F13256387: D21193.id.diff
Sat, May 25, 11:35 AM
F13252522: D21193.diff
Sat, May 25, 1:38 AM
F13244000: D21193.diff
Thu, May 23, 4:25 AM
F13238552: D21193.id50472.diff
Tue, May 21, 7:54 PM
F13222486: D21193.diff
Sun, May 19, 3:42 AM
F13205119: D21193.diff
Wed, May 15, 1:27 AM
F13188453: D21193.diff
Sat, May 11, 5:15 AM
F13180238: D21193.id50473.diff
Wed, May 8, 10:44 PM
Subscribers
None

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
Lint Not Applicable
Unit
Tests Not Applicable