Language::listToText: Avoid PHP warnings from E_STRICT
authorMark A. Hershberger <mah@nichework.com>
Fri, 13 Jul 2018 18:19:51 +0000 (14:19 -0400)
committerMarkAHershberger <mah@nichework.com>
Thu, 19 Jul 2018 17:16:21 +0000 (17:16 +0000)
commit2fb1ec2a758580227e688042f4d0852e435c0f69
treec9514796cb2d22559b3b3932cda4e1df72904d94
parent2b9391c966ed6ae8780153c25e684a3cb44ee46a
Language::listToText: Avoid PHP warnings from E_STRICT

Language::listToText() uses for(;;) which assumes the index in a list
starts at 0 and following keys are consecutive integers.

This assumption fails (and results in warnings with E_STRICT) when
SpecialListGroupRights::formatPermissions() uses the key-preserving
array_intersect() to create a subset of $allGroups.

Bug: T199559
Change-Id: I4eb03a95509d69653156a2764d58c0c5d0d1dfbc
languages/Language.php