Page MenuHomePhabricator

Add a lint error about use of PHP short array syntax ('[...]')
ClosedPublic

Authored by epriestley on Aug 1 2016, 11:26 AM.
Tags
None
Referenced Files
F15571820: D16357.id39339.diff
Mon, May 5, 10:44 AM
F15562912: D16357.id39341.diff
Wed, Apr 30, 5:03 AM
F15540229: D16357.id.diff
Fri, Apr 25, 6:50 AM
F15535549: D16357.diff
Thu, Apr 24, 5:42 AM
F15525505: D16357.id39339.diff
Mon, Apr 21, 2:56 PM
F15454154: D16357.id39339.diff
Mar 29 2025, 4:39 PM
F15448695: D16357.id39341.diff
Mar 28 2025, 6:24 AM
F15430197: D16357.id.diff
Mar 24 2025, 6:26 AM
Subscribers
None

Details

Summary

Ref T11409. Add lint to detect using [...] to define arrays. This doesn't work in PHP 5.2/5.3, which some of our users run.

Test Plan
  • Ran arc unit.
  • Ran arc lint src/applications/harbormaster/conduit/HarbormasterQueryBuildsConduitAPIMethod.php to detect the issue in T11409.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Add a lint error about use of PHP short array syntax ('[...]').
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, yelirekim.
chad edited edge metadata.
This revision is now accepted and ready to land.Aug 1 2016, 2:22 PM
This revision was automatically updated to reflect the committed changes.