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
F15370181: D20857.diff
Wed, Mar 12, 9:27 AM
F15327254: D20857.id49724.diff
Fri, Mar 7, 4:29 AM
Unknown Object (File)
Mon, Mar 3, 3:52 AM
Unknown Object (File)
Feb 9 2025, 8:17 AM
Unknown Object (File)
Feb 9 2025, 8:17 AM
Unknown Object (File)
Feb 9 2025, 8:17 AM
Unknown Object (File)
Feb 9 2025, 8:17 AM
Unknown Object (File)
Feb 2 2025, 12:34 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