@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Simplify one "array_keys/range" -> "phutil_is_natural_list()" in "phabricator/"

Summary: Depends on D20213. Simplify this idiom.

Test Plan: Squinted hard; `grep array_keys | grep range`.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20215

+1 -1
+1 -1
src/applications/config/type/PhabricatorSetConfigType.php
··· 43 43 } 44 44 45 45 if ($value) { 46 - if (array_keys($value) !== range(0, count($value) - 1)) { 46 + if (!phutil_is_natural_list($value)) { 47 47 throw $this->newException( 48 48 pht( 49 49 'Option "%s" is of type "%s", and should be specified on the '.