File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1074,7 +1074,7 @@ use PhpParser\Node\Expr\List_;
1074
1074
use PhpParser\Node\Expr\Variable;
1075
1075
1076
1076
$variable = new Variable('variableName');
1077
- $anotherVariable = new Variable('anoterVariableName ');
1077
+ $anotherVariable = new Variable('anotherVariableName ');
1078
1078
1079
1079
$arrayItems = [new ArrayItem($variable), new ArrayItem($anotherVariable)];
1080
1080
@@ -1084,7 +1084,7 @@ return new List_($arrayItems);
1084
1084
↓
1085
1085
1086
1086
``` php
1087
- list($variableName, $anoterVariableName )
1087
+ list($variableName, $anotherVariableName )
1088
1088
```
1089
1089
1090
1090
<br >
@@ -2806,7 +2806,7 @@ $echo = new Echo_([new String_('one')]);
2806
2806
$tryStmts = [$echo];
2807
2807
2808
2808
$echo2 = new Echo_([new String_('two')]);
2809
- $catch = new Catch_([new FullyQualified('CatchedType ')], null, [$echo2]);
2809
+ $catch = new Catch_([new FullyQualified('SomeType ')], null, [$echo2]);
2810
2810
2811
2811
$echo3 = new Echo_([new String_('three')]);
2812
2812
$finally = new Finally_([$echo3]);
@@ -2819,7 +2819,7 @@ return new TryCatch($tryStmts, [$catch]);
2819
2819
``` php
2820
2820
try {
2821
2821
echo 'one';
2822
- } catch (\CatchedType ) {
2822
+ } catch (\SomeType ) {
2823
2823
echo 'two';
2824
2824
}
2825
2825
```
Original file line number Diff line number Diff line change 7
7
use PhpParser \Node \Expr \Variable ;
8
8
9
9
$ variable = new Variable ('variableName ' );
10
- $ anotherVariable = new Variable ('anoterVariableName ' );
10
+ $ anotherVariable = new Variable ('anotherVariableName ' );
11
11
12
12
$ arrayItems = [new ArrayItem ($ variable ), new ArrayItem ($ anotherVariable )];
13
13
Original file line number Diff line number Diff line change 13
13
$ tryStmts = [$ echo ];
14
14
15
15
$ echo2 = new Echo_ ([new String_ ('two ' )]);
16
- $ catch = new Catch_ ([new FullyQualified ('CatchedType ' )], null , [$ echo2 ]);
16
+ $ catch = new Catch_ ([new FullyQualified ('SomeType ' )], null , [$ echo2 ]);
17
17
18
18
$ echo3 = new Echo_ ([new String_ ('three ' )]);
19
19
$ finally = new Finally_ ([$ echo3 ]);
You can’t perform that action at this time.
0 commit comments