Skip to content

Commit 269f273

Browse files
authored
Merge pull request #5 from szepeviktor/typos
Fix typos
2 parents c3c5260 + be06ca5 commit 269f273

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ use PhpParser\Node\Expr\List_;
10741074
use PhpParser\Node\Expr\Variable;
10751075

10761076
$variable = new Variable('variableName');
1077-
$anotherVariable = new Variable('anoterVariableName');
1077+
$anotherVariable = new Variable('anotherVariableName');
10781078

10791079
$arrayItems = [new ArrayItem($variable), new ArrayItem($anotherVariable)];
10801080

@@ -1084,7 +1084,7 @@ return new List_($arrayItems);
10841084
10851085

10861086
```php
1087-
list($variableName, $anoterVariableName)
1087+
list($variableName, $anotherVariableName)
10881088
```
10891089

10901090
<br>
@@ -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('CatchedType')], 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/list.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use PhpParser\Node\Expr\Variable;
88

99
$variable = new Variable('variableName');
10-
$anotherVariable = new Variable('anoterVariableName');
10+
$anotherVariable = new Variable('anotherVariableName');
1111

1212
$arrayItems = [new ArrayItem($variable), new ArrayItem($anotherVariable)];
1313

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('CatchedType')], 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)