Skip to content

Commit

Permalink
Merge pull request #59979 from benjamenhogben/master
Browse files Browse the repository at this point in the history
add php try catch snippet
  • Loading branch information
roblourens authored Oct 4, 2018
2 parents e4172c2 + 3edd274 commit a2cb37a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions extensions/php/snippets/php.snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,16 @@
"#endregion"
],
"description": "Folding Region End"
},
"Try Catch Block": {
"prefix": "try",
"body": [
"try {",
"\t${1://code...}",
"} catch (\\Exception \\$$e) {",
"\t${2://throw $$e;}",
"}"
],
"description": "Try catch block"
}
}

0 comments on commit a2cb37a

Please sign in to comment.