Page MenuHomePhabricator

Add a lint check for deprecated argument order to "implode()"
ClosedPublic

Authored by epriestley on Oct 17 2019, 4:05 PM.
Tags
None
Referenced Files
F19083099: D20857.id49726.diff
Dec 2 2025, 12:30 PM
F18985249: D20857.id49724.diff
Nov 17 2025, 12:57 PM
F18851677: D20857.diff
Oct 31 2025, 3:00 AM
F18829352: D20857.id49724.diff
Oct 24 2025, 9:19 PM
F18826370: D20857.id.diff
Oct 24 2025, 3:41 AM
F18823340: D20857.id49726.diff
Oct 23 2025, 11:28 AM
F18818887: D20857.diff
Oct 22 2025, 2:57 AM
F18734078: D20857.id.diff
Sep 30 2025, 10:47 PM
Subscribers
None

Details

Summary

Ref T13428. Historically, "implode()" accepts arguments in either order. PHP 7.4+ warns about glue not being first.

Add a lint check when the second parameter is a static scalar, implying it is the glue parameter.

Test Plan

Ran unit tests. See next change.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable