PHP Classes

File: vendor/nikic/php-parser/test/code/parser/stmt/tryCatch.test

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/nikic/php-parser/test/code/parser/stmt/tryCatch.test   Download  
File: vendor/nikic/php-parser/test/code/parser/stmt/tryCatch.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 2,837 bytes
 

Contents

Class file image Download
Try/catch ----- <?php try { doTry(); } catch (A $b) { doCatchA(); } catch (B $c) { doCatchB(); } finally { doFinally(); } // no finally try { } catch (A $b) { } // no catch try { } finally { } ----- array( 0: Stmt_TryCatch( stmts: array( 0: Expr_FuncCall( name: Name( parts: array( 0: doTry ) ) args: array( ) ) ) catches: array( 0: Stmt_Catch( types: array( 0: Name( parts: array( 0: A ) ) ) var: b stmts: array( 0: Expr_FuncCall( name: Name( parts: array( 0: doCatchA ) ) args: array( ) ) ) ) 1: Stmt_Catch( types: array( 0: Name( parts: array( 0: B ) ) ) var: c stmts: array( 0: Expr_FuncCall( name: Name( parts: array( 0: doCatchB ) ) args: array( ) ) ) ) ) finally: Stmt_Finally( stmts: array( 0: Expr_FuncCall( name: Name( parts: array( 0: doFinally ) ) args: array( ) ) ) ) ) 1: Stmt_TryCatch( stmts: array( ) catches: array( 0: Stmt_Catch( types: array( 0: Name( parts: array( 0: A ) ) ) var: b stmts: array( ) ) ) finally: null comments: array( 0: // no finally ) ) 2: Stmt_TryCatch( stmts: array( ) catches: array( ) finally: Stmt_Finally( stmts: array( ) ) comments: array( 0: // no catch ) ) )