HomePhabricator

Add array method dereference support to xhpast.

Description

Add array method dereference support to xhpast.

Summary: Adds support for array method dereferencing, e.g. $foo->bar()[0]. Bumps XHPAST version. Ref T4334.

Test Plan: Wrote two failing unit tests for language parsing abilities using the specific errors mentioned in T4334. Hacked away at the parser importing bits from Zend's zend_language_parser.y until they passed.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T4334

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

Details

Provenance
FirehedAuthored on
epriestleyCommitted on Mar 25 2014, 7:22 PM
epriestleyPushed on Mar 25 2014, 8:36 PM
Reviewer
Blessed Reviewers
Differential Revision
D8611: Add array method dereference support to xhpast.
Parents
rPHUa25afc6c64b0: Put a <span> around "NOTE:" in Remarkup
Branches
Unknown
Tags
Unknown
Tasks
T4334: Support PHP5.4+ syntax in XHPAST

Event Timeline