Skip to content

Commit f11f7df

Browse files
committed
apply StaticClosureRector on src
1 parent 7961300 commit f11f7df

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector;
66
use Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector;
77
use Rector\CodingStyle\Rector\ClassMethod\UnSpreadOperatorRector;
8+
use Rector\CodingStyle\Rector\Closure\StaticClosureRector;
89
use Rector\CodingStyle\Rector\Property\InlineSimplePropertyAnnotationRector;
910
use Rector\Config\RectorConfig;
1011
use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector;
@@ -37,5 +38,8 @@
3738
StaticArrowFunctionRector::class => [
3839
__DIR__ . '/spec',
3940
],
41+
StaticClosureRector::class => [
42+
__DIR__ . '/spec',
43+
],
4044
]);
4145
};

spec/Middleware/MezzioSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
});
4848

49-
given('logger', function () {
49+
given('logger', function (): Logger {
5050

5151
$dbAdapter = new Adapter([
5252
'username' => 'root',

0 commit comments

Comments
 (0)