菜谱项目

tryWithoutCatch.test 482B

123456789101112131415161718192021222324252627
  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: Expr_FuncCall(
  13. name: Name(
  14. parts: array(
  15. 0: foo
  16. )
  17. )
  18. args: array(
  19. )
  20. )
  21. )
  22. catches: array(
  23. )
  24. finally: null
  25. )
  26. )