User Tools

Site Tools


en:dev:all:psr:psr-2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dev:all:psr:psr-2 [26.05.2015 20:22] – [Closures] translated mrbasemanen:dev:all:psr:psr-2 [31.03.2017 06:59] (current) – [try, catch] Manuela v.d.Decken
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
- 
 [size=10]originating from  [[http://www.php-fig.org/psr/psr-2/|PHP-FIG PSR-2]][/size] [size=10]originating from  [[http://www.php-fig.org/psr/psr-2/|PHP-FIG PSR-2]][/size]
 ====== Coding Style Guide ====== ====== Coding Style Guide ======
Line 307: Line 305:
  
  
-==== try, catch ====+==== try, catch, finally ====
 A **try catch** block looks like the following. Note the placement of parentheses, spaces, and braces. A **try catch** block looks like the following. Note the placement of parentheses, spaces, and braces.
 <PHP> <PHP>
Line 316: Line 314:
 } catch (OtherExceptionType $e) { } catch (OtherExceptionType $e) {
     // catch body     // catch body
 +} finally {
 +    // finally body
 } }
 </PHP> </PHP>
en/dev/all/psr/psr-2.1432671747.txt.gz · Last modified: 03.06.2015 15:55 (external edit)