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
F13090481: D20857.diff
Thu, Apr 25, 2:24 AM
F13081070: D20857.diff
Wed, Apr 24, 1:47 PM
Unknown Object (File)
Sat, Apr 20, 4:57 PM
Unknown Object (File)
Mon, Apr 8, 10:27 AM
Unknown Object (File)
Mon, Apr 8, 9:27 AM
Unknown Object (File)
Mar 6 2024, 2:29 PM
Unknown Object (File)
Jan 28 2024, 2:52 AM
Unknown Object (File)
Dec 26 2023, 3:29 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
Branch
implode1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23552
Build 32367: Run Core Tests
Build 32366: arc lint + arc unit