PageRenderTime 46ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/tests/php/parsing/xhp_type_optional.php

https://github.com/llvm-djk/pfff
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
  1. <?hh
  2. class Test {
  3. private int $type;
  4. private :x:frag $xhp1;
  5. // this can potentially be ambiguous with the ?: empty ternary
  6. // PHP extension.
  7. private ?:x:frag $xhp1;
  8. }