Page MenuHomePhabricator

Add nullable type hint support to xhpast
Needs ReviewPublic

Authored by richardvanvelzen on Apr 28 2017, 8:43 AM.
Tags
None
Referenced Files
F13180961: D17802.id42804.diff
Thu, May 9, 6:32 AM
Unknown Object (File)
Tue, May 7, 5:47 AM
Unknown Object (File)
Mon, May 6, 3:05 PM
Unknown Object (File)
Fri, May 3, 6:29 AM
Unknown Object (File)
Fri, May 3, 3:24 AM
Unknown Object (File)
Mon, Apr 29, 2:20 PM
Unknown Object (File)
Mon, Apr 29, 3:16 AM
Unknown Object (File)
Wed, Apr 24, 10:55 PM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T4334: Support PHP5.4+ syntax in XHPAST
Summary

Ref T4334. This implements a new node type for type hints in general, and uses them to add nullability to a type hint.

Test Plan

Added test cases.

Diff Detail

Repository
rPHU libphutil
Branch
nullable-type-hints
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16732
Build 22321: arc lint + arc unit

Event Timeline

src/parser/xhpast/__tests__/data/nullable-type-hints.php.test
1

Darn

Remove copy-flag from new unit test (caused by copy-via-IDE)

This does not appear to have any impact on arc/lint.

(This and the other change look good to me, I just want to look at them in more detail and maybe take a stab at fixing the awful unreadable test cases while we're here.)

Sure, no problem. Let me know if there is something I can do to help