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
F15476572: D20857.id.diff
Mon, Apr 7, 7:21 AM
F15474496: D20857.diff
Sun, Apr 6, 9:30 AM
F15451077: D20857.diff
Fri, Mar 28, 7:59 PM
F15370181: D20857.diff
Wed, Mar 12, 9:27 AM
F15327254: D20857.id49724.diff
Mar 7 2025, 4:29 AM
Unknown Object (File)
Mar 3 2025, 3:52 AM
Unknown Object (File)
Feb 9 2025, 8:17 AM
Unknown Object (File)
Feb 9 2025, 8:17 AM
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