HomePhabricator

Support class const dereferencing in xhpast

Description

Support class const dereferencing in xhpast

Summary:
Ref T4334. As it turns out, a major overhaul of the syntax wasn't needed.

This adds support for stuff like SomeClass::SOME_CONST[$idx] which was introduced in PHP 7.

Test Plan: Added a test case. Ran tests on libphutil and arcanist with both PHP 5 and PHP 7.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin, Firehed

Maniphest Tasks: T4334

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

Details

Provenance
richardvanvelzenAuthored on Jun 17 2016, 9:50 AM
richardvanvelzenPushed on Jun 17 2016, 12:11 PM
Reviewer
Blessed Reviewers
Differential Revision
D16138: Support class const dereferencing in xhpast
Parents
rPHU1390fd2e8fdd: Support "x bits in bytes" in phutil_units()
Branches
Unknown
Tags
Unknown
Tasks
T4334: Support PHP5.4+ syntax in XHPAST
Build Status
Buildable 12702
Build 16151: Run Core Tests