HomePhabricator

Add a lint rule forbidding use of "each()"

Description

Add a lint rule forbidding use of "each()"

Summary:
Ref T13588. "each()" has been a bad idea for a long time, and was formally deprecated in PHP 7.2 and removed in PHP 8.0.

Catch use of "each()" in lint and reject it.

Test Plan:
Added and ran unit tests.

Screen Shot 2021-12-09 at 1.53.30 PM.png (201×586 px, 62 KB)

Subscribers: cspeckmim

Maniphest Tasks: T13588

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

Details

Provenance
epriestleyAuthored on Dec 9 2021, 9:51 PM
epriestleyPushed on Dec 9 2021, 11:58 PM
Differential Revision
D21741: Add a lint rule forbidding use of "each()"
Parents
rARC3626582354e4: Correct some Arcanist behaviors under PHP8.1
Branches
Unknown
Tags
Unknown
Tasks
T13588: PHP 8 Compatibility
Build Status
Buildable 25602
Build 35413: Run Core Tests