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
Lint
Lint Not Applicable
Unit
Tests Not Applicable