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
F19355731: D16357.id39339.diff
Fri, Dec 26, 6:32 AM
F19088693: D16357.diff
Dec 3 2025, 4:53 AM
F18935531: D16357.diff
Nov 10 2025, 6:29 PM
F18754564: D16357.diff
Oct 4 2025, 11:31 PM
F18745070: D16357.id.diff
Oct 3 2025, 5:13 AM
F18741283: D16357.id39341.diff
Oct 2 2025, 11:03 AM
F18740758: D16357.diff
Oct 2 2025, 5:18 AM
F18659234: D16357.diff
Sep 23 2025, 10:36 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.