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
F15430197: D16357.id.diff
Mon, Mar 24, 6:26 AM
F15425823: D16357.diff
Sun, Mar 23, 6:19 AM
F15422905: D16357.diff
Sat, Mar 22, 11:10 AM
F15417288: D16357.id39341.diff
Thu, Mar 20, 4:29 PM
Unknown Object (File)
Sun, Feb 23, 3:30 PM
Unknown Object (File)
Sun, Feb 23, 3:30 PM
Unknown Object (File)
Feb 21 2025, 1:50 PM
Unknown Object (File)
Feb 18 2025, 4:58 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
Branch
shortarray
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13219
Build 16936: Run Core Tests
Build 16935: arc lint + arc unit

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.