Skip to content

Commit c20d323

Browse files
committed
UnusedInheritedVariablePassedToClosureSniff: More tests
1 parent 9deeb9b commit c20d323

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Sniffs/Functions/data/unusedInheritedVariablePassedToClosureNoErrors.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,13 @@ function ($values) use ($doo): ?string {
2424

2525
return null;
2626
};
27+
28+
function () use ($eoo) {
29+
echo "$eoo";
30+
};
31+
32+
function () use ($foo) {
33+
echo <<<TEXT
34+
${foo}
35+
TEXT;
36+
};

0 commit comments

Comments
 (0)