HomeSealhub

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.

{F10021268}

Subscribers: cspeckmim

Maniphest Tasks: T13588

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

Details

Provenance
epriestleyAuthored on Dec 9 2021, 22:51
kuba-orlikPushed on Jan 24 2022, 10:17
Parents
R118:3626582354e4: Correct some Arcanist behaviors under PHP8.1
Branches
Unknown
Tags
Unknown

Event Timeline