Skip to content

Commit be06ca5

Browse files
committed
Correct to "SomeType"
1 parent a77a0c0 commit be06ca5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2806,7 +2806,7 @@ $echo = new Echo_([new String_('one')]);
28062806
$tryStmts = [$echo];
28072807

28082808
$echo2 = new Echo_([new String_('two')]);
2809-
$catch = new Catch_([new FullyQualified('CaughtType')], null, [$echo2]);
2809+
$catch = new Catch_([new FullyQualified('SomeType')], null, [$echo2]);
28102810

28112811
$echo3 = new Echo_([new String_('three')]);
28122812
$finally = new Finally_([$echo3]);
@@ -2819,7 +2819,7 @@ return new TryCatch($tryStmts, [$catch]);
28192819
```php
28202820
try {
28212821
echo 'one';
2822-
} catch (\CatchedType) {
2822+
} catch (\SomeType) {
28232823
echo 'two';
28242824
}
28252825
```

snippet/try_catch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
$tryStmts = [$echo];
1414

1515
$echo2 = new Echo_([new String_('two')]);
16-
$catch = new Catch_([new FullyQualified('CaughtType')], null, [$echo2]);
16+
$catch = new Catch_([new FullyQualified('SomeType')], null, [$echo2]);
1717

1818
$echo3 = new Echo_([new String_('three')]);
1919
$finally = new Finally_([$echo3]);

0 commit comments

Comments
 (0)