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
F14403347: D21193.diff
Mon, Dec 23, 2:20 AM
Unknown Object (File)
Fri, Dec 20, 9:03 PM
Unknown Object (File)
Sun, Dec 15, 5:14 PM
Unknown Object (File)
Wed, Dec 11, 2:19 PM
Unknown Object (File)
Wed, Dec 11, 8:16 AM
Unknown Object (File)
Fri, Dec 6, 3:08 AM
Unknown Object (File)
Sat, Nov 30, 9:58 PM
Unknown Object (File)
Sat, Nov 23, 6:00 AM
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