-
Notifications
You must be signed in to change notification settings - Fork 2
/
Php74.php
65 lines (60 loc) · 2.07 KB
/
Php74.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
namespace Wieni\wmcodestyle\PhpCsFixer\Config\RuleSet;
final class Php74 extends RuleSetBase
{
/** @var string */
protected $name = 'Wieni (PHP 7.4)';
/** @var array<string, array|bool> */
protected $rules = [
'@Symfony' => true,
'@PHP74Migration' => true,
'@DoctrineAnnotation' => true,
'blank_line_before_statement' => false,
'class_definition' => [
'multi_line_extends_each_single_line' => true,
'single_item_single_line' => true,
'single_line' => false,
],
'concat_space' => ['spacing' => 'one'],
'doctrine_annotation_spaces' => [
'after_argument_assignments' => true,
'before_argument_assignments' => true,
],
'explicit_indirect_variable' => true,
'global_namespace_import' => false,
'increment_style' => ['style' => 'post'],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
'remove_inheritdoc' => true,
],
'no_useless_return' => true,
'nullable_type_declaration_for_default_null_value' => true,
'operator_linebreak' => true,
'ordered_class_elements' => true,
'phpdoc_align' => false,
'phpdoc_annotation_without_dot' => false,
'phpdoc_line_span' => [
'const' => 'single',
'method' => 'single',
'property' => 'single',
],
'phpdoc_separation' => false,
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'simplified_if_return' => true,
'single_line_throw' => false,
'yoda_style' => false,
'Wieni/create_method_order' => true,
];
/** @var array<string, array|bool> */
protected $riskyRules = [
'@Symfony:risky' => true,
'@PHP74Migration:risky' => true,
'comment_to_phpdoc' => true,
'declare_strict_types' => false,
'native_constant_invocation' => false,
'native_function_invocation' => false,
];
/** @var int */
protected $targetPhpVersion = 70400;
}