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
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
Unknown Object (File)
Nov 19 2024, 5:04 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
Branch
utf81
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24287
Build 33456: Run Core Tests
Build 33455: arc lint + arc unit