Skip to content

Commit 088406d

Browse files
committed
Updated
1 parent 441e9dd commit 088406d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.php_cs-fixer.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<?php
22
/*
33
* This document has been generated with
4-
* https://mlocati.github.io/php-cs-fixer-configurator/#version:2.17.3|configurator
4+
* https://mlocati.github.io/php-cs-fixer-configurator/#version:3.0.0|configurator
55
* you can change this configuration by importing this file.
66
*/
7-
return PhpCsFixer\Config::create()
7+
$config = new PhpCsFixer\Config();
8+
9+
return $config
810
->setRiskyAllowed(true)
911
->setRules([
1012
'@DoctrineAnnotation' => true,
11-
'@PHP56Migration' => true,
1213
'@PHP70Migration' => true,
1314
'@PHP71Migration' => true,
1415
'@PSR2' => true,
@@ -66,8 +67,6 @@
6667
'no_alternative_syntax' => true,
6768
// Properties MUST not be explicitly initialized with `null` except when they have a type declaration (PHP 7.4).
6869
'no_null_property_initialization' => true,
69-
// Replaces short-echo `<?=` with long format `<?php echo` syntax.
70-
'no_short_echo_tag' => true,
7170
// Variables must be set `null` instead of using `(unset)` casting.
7271
'no_unset_cast' => true,
7372
// There should not be an empty `return` statement at the end of a function.
@@ -84,8 +83,6 @@
8483
'php_unit_internal_class' => true,
8584
// Enforce camel (or snake) case for PHPUnit test methods, following configuration.
8685
'php_unit_method_casing' => true,
87-
// Order `@covers` annotation of PHPUnit tests.
88-
'php_unit_ordered_covers' => true,
8986
// Adds a default `@coversNothing` annotation to PHPUnit test classes that have no `@covers*` annotation.
9087
'php_unit_test_class_requires_covers' => true,
9188
// PHPDoc should contain `@param` for all params.
@@ -105,7 +102,8 @@
105102
// A return statement wishing to return `void` should not return `null`.
106103
'simplified_null_return' => true,
107104
])
108-
->setFinder(PhpCsFixer\Finder::create()
105+
->setFinder(
106+
PhpCsFixer\Finder::create()
109107
->exclude('vendor')
110108
->in(__DIR__)
111109
)

0 commit comments

Comments
 (0)