Page MenuHomePhabricator

Support class const dereferencing in xhpast
ClosedPublic

Authored by richardvanvelzen on Jun 17 2016, 9:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 9:51 AM
Unknown Object (File)
Tue, Nov 19, 9:18 PM
Unknown Object (File)
Sat, Nov 9, 8:21 PM
Unknown Object (File)
Tue, Nov 5, 8:33 PM
Unknown Object (File)
Oct 21 2024, 7:31 PM
Unknown Object (File)
Oct 19 2024, 4:13 PM
Unknown Object (File)
Oct 16 2024, 11:40 AM
Unknown Object (File)
Oct 7 2024, 3:24 AM
Subscribers

Details

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.

Diff Detail

Repository
rPHU libphutil
Branch
const-deref
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 12701
Build 16150: arc lint + arc unit

Event Timeline

richardvanvelzen retitled this revision from to Support class const dereferencing in xhpast.
richardvanvelzen updated this object.
richardvanvelzen edited the test plan for this revision. (Show Details)
richardvanvelzen added a reviewer: epriestley.
This revision is now accepted and ready to land.Jun 17 2016, 11:43 AM
This revision was automatically updated to reflect the committed changes.