Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a77a0c0

Browse files
Fix typos
1 parent c3c5260 commit a77a0c0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎README.md‎

Lines changed: 3 additions & 3 deletions
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('CaughtType')], null, [$echo2]);
28102810

28112811
$echo3 = new Echo_([new String_('three')]);
28122812
$finally = new Finally_([$echo3]);

‎snippet/list.php‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 1 addition & 1 deletion
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('CaughtType')], null, [$echo2]);
1717

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /