Skip to content

Commit 33cf03c

Browse files
committed
cs: upd rules
1 parent 5da0d0f commit 33cf03c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
return (new PhpCsFixer\Config())
88
->setRules([
99
'@Symfony' => true,
10+
'@Symfony:risky' => true,
11+
'@PHP80Migration:risky' => true,
1012
'@PHP80Migration' => true,
1113

1214
'combine_consecutive_issets' => true,
@@ -22,6 +24,8 @@
2224
'phpdoc_order' => true,
2325
'strict_comparison' => true,
2426
'combine_nested_dirname' => true,
27+
'use_arrow_functions' => false,
28+
'declare_strict_types' => false,
2529
])
2630
->setRiskyAllowed(true)
2731
->setFinder($finder)

src/Php.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public static function formatOutputHelper(string $source, int $line, string $css
140140
protected function formatCheckOutput(array $result): array
141141
{
142142
if (isset($result['errors'])) {
143-
\array_walk($result['errors'], static function (&$item) {
143+
\array_walk($result['errors'], static function (&$item): void {
144144
$item['file'] = null;
145145
});
146146
}

0 commit comments

Comments
 (0)