Skip to content

Commit f1fd1ce

Browse files
committed
Enable '@PHP71Migration', '@PHP71Migration:risky' rulesets for PHP-CS-Fixer
1 parent 8896c26 commit f1fd1ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.php_cs.dist

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ return PhpCsFixer\Config::create()
2020
->setRiskyAllowed(true)
2121
->setRules([
2222
'@DoctrineAnnotation' => true,
23+
'@PHP71Migration' => true,
24+
'@PHP71Migration:risky' => true,
2325
'@PHPUnit60Migration:risky' => true,
2426
'@Symfony' => true,
2527
'@Symfony:risky' => true,
@@ -33,7 +35,7 @@ return PhpCsFixer\Config::create()
3335
'braces' => [
3436
'allow_single_line_closure' => true,
3537
],
36-
'declare_strict_types' => true,
38+
'compact_nullable_typehint' => true,
3739
'doctrine_annotation_array_assignment' => [
3840
'operator' => '=',
3941
],
@@ -76,7 +78,7 @@ return PhpCsFixer\Config::create()
7678
'phpdoc_trim_consecutive_blank_line_separation' => true,
7779
'strict_comparison' => true,
7880
'strict_param' => true,
79-
'ternary_to_null_coalescing' => true,
81+
'void_return' => false, // BC breaks; to be done in API Platform 3.0
8082
])
8183
->setFinder($finder)
8284
;

0 commit comments

Comments
 (0)