tryWithoutCatch.test 567 B

1234567891011121314151617181920212223242526272829
  1. Cannot use try without catch or finally
  2. -----
  3. <?php
  4. try {
  5. foo();
  6. }
  7. -----
  8. Cannot use try without catch or finally from 3:1 to 5:1
  9. array(
  10. 0: Stmt_TryCatch(
  11. stmts: array(
  12. 0: Stmt_Expression(
  13. expr: Expr_FuncCall(
  14. name: Name(
  15. parts: array(
  16. 0: foo
  17. )
  18. )
  19. args: array(
  20. )
  21. )
  22. )
  23. )
  24. catches: array(
  25. )
  26. finally: null
  27. )
  28. )