Ref T4334. This implements a new node type for type hints in general, and uses them to add nullability to a type hint.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T4334: Support PHP5.4+ syntax in XHPAST
Added test cases.
Diff Detail
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 |
Comment Actions
(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.)