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
F19927317: D20857.id49726.diff
Tue, Apr 7, 9:43 PM
F19826383: D20857.id49726.diff
Mar 8 2026, 7:48 PM
F19671044: D20857.diff
Feb 8 2026, 12:14 AM
F19671043: D20857.diff
Feb 8 2026, 12:13 AM
F19583156: D20857.diff
Feb 1 2026, 11:49 PM
F19583155: D20857.diff
Feb 1 2026, 11:49 PM
F19510244: D20857.diff
Jan 11 2026, 6:31 AM
F19083099: D20857.id49726.diff
Dec 2 2025, 12:30 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