Mercurial > hg > isophonics-drupal-site
annotate vendor/nikic/php-parser/test/code/parser/stmt/tryWithoutCatch.test @ 1:1a348b17ec81
Logo and header background
author | Chris Cannam |
---|---|
date | Thu, 30 Nov 2017 14:56:35 +0000 |
parents | 4c8ae668cc8c |
children | 5fb285c0d0e3 |
rev | line source |
---|---|
Chris@0 | 1 Cannot use try without catch or finally |
Chris@0 | 2 ----- |
Chris@0 | 3 <?php |
Chris@0 | 4 |
Chris@0 | 5 try { |
Chris@0 | 6 foo(); |
Chris@0 | 7 } |
Chris@0 | 8 ----- |
Chris@0 | 9 Cannot use try without catch or finally from 3:1 to 5:1 |
Chris@0 | 10 array( |
Chris@0 | 11 0: Stmt_TryCatch( |
Chris@0 | 12 stmts: array( |
Chris@0 | 13 0: Expr_FuncCall( |
Chris@0 | 14 name: Name( |
Chris@0 | 15 parts: array( |
Chris@0 | 16 0: foo |
Chris@0 | 17 ) |
Chris@0 | 18 ) |
Chris@0 | 19 args: array( |
Chris@0 | 20 ) |
Chris@0 | 21 ) |
Chris@0 | 22 ) |
Chris@0 | 23 catches: array( |
Chris@0 | 24 ) |
Chris@0 | 25 finally: null |
Chris@0 | 26 ) |
Chris@0 | 27 ) |