comparison vendor/nikic/php-parser/test/code/parser/stmt/tryWithoutCatch.test @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 5fb285c0d0e3
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 Cannot use try without catch or finally
2 -----
3 <?php
4
5 try {
6 foo();
7 }
8 -----
9 Cannot use try without catch or finally from 3:1 to 5:1
10 array(
11 0: Stmt_TryCatch(
12 stmts: array(
13 0: Expr_FuncCall(
14 name: Name(
15 parts: array(
16 0: foo
17 )
18 )
19 args: array(
20 )
21 )
22 )
23 catches: array(
24 )
25 finally: null
26 )
27 )