readonlyMethod.test 747 B

12345678910111213141516171819202122232425262728293031323334
  1. Methods cannot be readonly
  2. -----
  3. <?php class A { readonly function foo() {} }
  4. -----
  5. Method foo() cannot be readonly from 1:17 to 1:24
  6. array(
  7. 0: Stmt_Class(
  8. attrGroups: array(
  9. )
  10. flags: 0
  11. name: Identifier(
  12. name: A
  13. )
  14. extends: null
  15. implements: array(
  16. )
  17. stmts: array(
  18. 0: Stmt_ClassMethod(
  19. attrGroups: array(
  20. )
  21. flags: READONLY (64)
  22. byRef: false
  23. name: Identifier(
  24. name: foo
  25. )
  26. params: array(
  27. )
  28. returnType: null
  29. stmts: array(
  30. )
  31. )
  32. )
  33. )
  34. )