commentAtEndOfClass.test 905 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Comment at end of class (#509)
  2. -----
  3. <?php
  4. class MyClass {
  5. protected $a;
  6. // my comment
  7. }
  8. -----
  9. array(
  10. 0: Stmt_Class(
  11. attrGroups: array(
  12. )
  13. flags: 0
  14. name: Identifier(
  15. name: MyClass
  16. )
  17. extends: null
  18. implements: array(
  19. )
  20. stmts: array(
  21. 0: Stmt_Property(
  22. attrGroups: array(
  23. )
  24. flags: MODIFIER_PROTECTED (2)
  25. type: null
  26. props: array(
  27. 0: Stmt_PropertyProperty(
  28. name: VarLikeIdentifier(
  29. name: a
  30. )
  31. default: null
  32. )
  33. )
  34. )
  35. 1: Stmt_Nop(
  36. comments: array(
  37. 0: // my comment
  38. )
  39. )
  40. )
  41. )
  42. )