HomePhabricator

Improve linter handling of short array syntax

Description

Improve linter handling of short array syntax

Summary: Currently, linting PHP short array syntax (i.e. [...]) throws an exception ("Expected open parentheses"). This diff relaxes some restrictions which prevent short array syntax from linting with ArcanistParenthesesSpacingXHPASTLinterRule.

Test Plan: Modified test cases.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: agenticarus, Korvin

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

Details

Auditors
OCram
Provenance
joshuaspenceAuthored on
joshuaspencePushed on Aug 19 2015, 5:39 AM
Reviewer
Blessed Reviewers
Differential Revision
D13895: Improve linter handling of short array syntax
Parents
rARC4404e66735c4: Improve the "inline HTML" linter rule
Branches
Unknown
Tags
Unknown