Skip to content

Commit

Permalink
Merge pull request #189
Browse files Browse the repository at this point in the history
fix tests in arrow function
  • Loading branch information
olivernybroe authored Oct 9, 2024
2 parents 9355985 + cdf09c4 commit e222092
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
'tree'
]);

$array->each(<weak_warning descr="Closure can be converted to arrow function">function ($item) {
$array->each(<caret>function ($item) {
doAction($item);
}</weak_warning>);
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
'tree'
];

collect($array)->each(<weak_warning descr="Closure can be converted to arrow function">function ($item) {
collect($array)->each(<caret>function ($item) {
return doAction($item);
}</weak_warning>);
});
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

$name = 'one';

collect($array)->each(<weak_warning descr="Closure can be converted to arrow function">function ($item) use ($name) {
collect($array)->each(<caret>function ($item) use ($name) {
doAction($item, $name);
}</weak_warning>);
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
'tree'
];

collect($array)->each(<weak_warning descr="Closure can be converted to arrow function">function ($item) {
collect($array)->each(<caret>function ($item) {
doAction($item);
}</weak_warning>);
});

0 comments on commit e222092

Please sign in to comment.