/tests/php/parsing/xhp_type_optional.php
PHP | 9 lines | 6 code | 1 blank | 2 comment | 0 complexity | 2137327b19f9d3745fc56949c5193e08 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0, LGPL-3.0, ISC
- <?hh
- class Test {
- private int $type;
- private :x:frag $xhp1;
- // this can potentially be ambiguous with the ?: empty ternary
- // PHP extension.
- private ?:x:frag $xhp1;
- }