File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 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_;
10741074use 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
28202820try {
28212821 echo 'one';
2822- } catch (\CatchedType ) {
2822+ } catch (\SomeType ) {
28232823 echo 'two';
28242824}
28252825```
Original file line number Diff line number Diff line change 77use 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
Original file line number Diff line number Diff line change 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 ]);
You can’t perform that action at this time.
0 commit comments