Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions language/control-structures/finally.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ function inverse($x) {

try {
echo inverse(5) . "\n";
} catch (\DivisionByZeroError $e) {
} catch (DivisionByZeroError $e) {
echo 'Caught error: ', $e->getMessage(), "\n";
} finally {
echo "First finally.\n";
}

try {
echo inverse(0) . "\n";
} catch (\DivisionByZeroError $e) {
} catch (DivisionByZeroError $e) {
echo 'Caught error: ', $e->getMessage(), "\n";
} finally {
echo "Second finally.\n";
Expand Down Expand Up @@ -243,7 +243,7 @@ function generate()
try {
yield 1;
yield 2;
} catch (\Exception $e) {
} catch (Exception $e) {
echo 'catch';
} finally {
echo "finally\n";
Expand Down Expand Up @@ -289,7 +289,7 @@ function generate()
try {
yield 1;
yield 2;
} catch (\Exception $e) {
} catch (Exception $e) {
echo 'catch';
} finally {
echo "finally\n";
Expand Down Expand Up @@ -446,7 +446,7 @@ function generate()
try {
yield 1;
yield 2;
} catch (\Exception $e) {
} catch (Exception $e) {
echo 'catch';
} finally {
echo "inner finally\n";
Expand Down
Loading