Homec4science

Support class const dereferencing in xhpast

Authored by Richard van Velzen <rvanvelzen@experty.com> on Jun 17 2016, 11:50.

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

Committed
Richard van Velzen <rvanvelzen@experty.com>Jun 17 2016, 14:11
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU1390fd2e8fdd: Support "x bits in bytes" in phutil_units()
Branches
Unknown
Tags
Unknown

Event Timeline

Richard van Velzen <rvanvelzen@experty.com> committed rPHU51c179b4c000: Support class const dereferencing in xhpast (authored by Richard van Velzen <rvanvelzen@experty.com>).Jun 17 2016, 14:11