1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01:00
phorge-arcanist/src/utils
epriestley a0c346bf63 Add a support class to simplify typechecking list-of-objects return values
Summary:
With some frequency, code wants to assert that some "$o->m()" returns a list of objects of type X, possibly with unique values for some "getKey()"-style method result.

Existing checks via `PhutilTypeMap` and `assert_instances_of()` aren't quite powerful enough to do this while producing an easily understandable error state. We want to know that the error arose from a call to "$o->m()" in particular.

Test Plan: Currently used elsewhere, in Piledriver code.

Differential Revision: https://secure.phabricator.com/D21293
2020-05-28 07:33:23 -07:00
..
__tests__ Work around "mb_check_encoding(<stringlike-object>)" warning in particular versions of PHP 2020-04-30 07:19:45 -07:00
AbstractDirectedGraph.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
CaseInsensitiveArray.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilArray.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilArrayCheck.php Add a support class to simplify typechecking list-of-objects return values 2020-05-28 07:33:23 -07:00
PhutilArrayWithDefaultValue.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilBufferedIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilCallbackFilterIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilChunkedIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilCowsay.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilDirectedScalarGraph.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilEditDistanceMatrix.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilExampleBufferedIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilExecutionEnvironment.php Merge utility/support changes from "wilds" to "master" 2020-02-13 14:10:09 -08:00
PhutilHashingIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilLunarPhase.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilProxyIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilRope.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilSortVector.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilStreamIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilSystem.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilUTF8StringTruncator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
utf8.php Work around "mb_check_encoding(<stringlike-object>)" warning in particular versions of PHP 2020-04-30 07:19:45 -07:00
utils.php In "phutil_loggable_string()", encode every byte above 0x7F 2020-04-14 16:03:12 -07:00
viewutils.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00