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
F22674751: D20857.id49726.diff
Thu, Oct 1, 9:10 PM
F22665127: D20857.id49726.diff
Thu, Oct 1, 1:21 PM
Unknown Object (File)
Thu, Sep 10, 2:33 PM
Unknown Object (File)
Aug 13 2026, 9:45 PM
Unknown Object (File)
Aug 12 2026, 11:09 AM
Unknown Object (File)
Jun 22 2026, 9:55 AM
Unknown Object (File)
Apr 7 2026, 9:43 PM
Unknown Object (File)
Mar 8 2026, 7:48 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