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
Unknown Object (File)
Wed, Jan 1, 10:43 PM
Unknown Object (File)
Fri, Dec 13, 5:24 AM
Unknown Object (File)
Fri, Dec 13, 3:24 AM
Unknown Object (File)
Nov 28 2024, 1:42 PM
Unknown Object (File)
Nov 28 2024, 1:42 PM
Unknown Object (File)
Nov 28 2024, 1:40 PM
Unknown Object (File)
Nov 28 2024, 1:23 PM
Unknown Object (File)
Nov 23 2024, 4:22 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
Branch
implode1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23552
Build 32367: Run Core Tests
Build 32366: arc lint + arc unit