Home GnuPG

Add a linter rule for curly brace array indexes
d2e778549727Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
Joshua Spence <josh@freelancer.com>Authored on Dec 8 2015, 8:56 PM
Parents
rARCa6e81daad1bb: Improve brace formatting linter rule
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@freelancer.com> committed rARCd2e778549727: Add a linter rule for curly brace array indexes (authored by Joshua Spence <josh@freelancer.com>).Dec 8 2015, 9:16 PM