Home GnuPG

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

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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

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.

Reviewers: yelirekim, chad

Reviewed By: chad

Maniphest Tasks: T11409

Differential Revision: https://secure.phabricator.com/D16357

Details

Provenance
epriestley <git@epriestley.com>Authored on Aug 1 2016, 1:24 PM
Parents
rARC06c641f92c65: Remove command spelling correction from Arcanist
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rARCf20d4b15c7e4: Add a lint error about use of PHP short array syntax ('[...]') (authored by epriestley <git@epriestley.com>).Aug 1 2016, 7:45 PM