HomePhabricator

Add a linter rule for curly brace array indexes

Description

Add a linter rule for curly brace array indexes

Summary: In PHP, both $x['key'] and $x{'key'} can be used to access an array (see http://stackoverflow.com/questions/8092248/php-curly-braces-in-array-notation), but the former should be preferred.

Test Plan: Added test cases.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin

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

Details

Provenance
joshuaspenceAuthored on
joshuaspencePushed on Dec 8 2015, 8:18 PM
Reviewer
Blessed Reviewers
Differential Revision
D14603: Add a linter rule for curly brace array indexes
Parents
rARCa6e81daad1bb: Improve brace formatting linter rule
Branches
Unknown
Tags
Unknown
Build Status
Buildable 9386
Build 11164: Run Core Tests