Skip to content

Commit 43441c1

Browse files
committed
[CS] Remove unused variables passed to closures
1 parent 3f19d7d commit 43441c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tests/LegacyOptionsTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ protected function setUp()
3232

3333
public function testSetLazyOption()
3434
{
35-
$test = $this;
36-
37-
$this->options->set('foo', function (Options $options) use ($test) {
35+
$this->options->set('foo', function (Options $options) {
3836
return 'dynamic';
3937
});
4038

@@ -89,7 +87,7 @@ public function testPreviousValueIsNotEvaluatedIfNoSecondArgument()
8987
});
9088

9189
// defined by subclass, no $previousValue argument defined!
92-
$this->options->overload('foo', function (Options $options) use ($test) {
90+
$this->options->overload('foo', function (Options $options) {
9391
return 'dynamic';
9492
});
9593

0 commit comments

Comments
 (0)