Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit dd45684

Browse files
committed
cs_fix : added new rules
'static_lambda' => true, 'return_assignment' => true, 'phpdoc_var_annotation_correct_order' => true,
1 parent b4cea8d commit dd45684

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.php-cs-fixer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
'concat_space' => [
2020
'spacing' => 'one'
2121
],
22-
'final_class' => true
22+
'final_class' => true,
23+
'static_lambda' => true,
24+
'return_assignment' => true,
25+
'phpdoc_var_annotation_correct_order' => true,
2326
])
2427
->setFinder($finder)
2528
;

src/Command/ComposerPackageCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function getInstalledDevRequires(): array
132132
return [];
133133
}
134134
$devRequires = array_map(
135-
function (Link $require) {
135+
static function (Link $require) {
136136
return ['version' => $require->getPrettyConstraint(), 'package' => $require->getTarget()];
137137
},
138138
$this->getComposer()->getPackage()->getDevRequires()

0 commit comments

Comments
 (0)