We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f19d7d commit 43441c1Copy full SHA for 43441c1
Tests/LegacyOptionsTest.php
@@ -32,9 +32,7 @@ protected function setUp()
32
33
public function testSetLazyOption()
34
{
35
- $test = $this;
36
-
37
- $this->options->set('foo', function (Options $options) use ($test) {
+ $this->options->set('foo', function (Options $options) {
38
return 'dynamic';
39
});
40
@@ -89,7 +87,7 @@ public function testPreviousValueIsNotEvaluatedIfNoSecondArgument()
89
87
90
88
91
// defined by subclass, no $previousValue argument defined!
92
- $this->options->overload('foo', function (Options $options) use ($test) {
+ $this->options->overload('foo', function (Options $options) {
93
94
95
0 commit comments