-
Notifications
You must be signed in to change notification settings - Fork 2
/
Php80.php
66 lines (61 loc) · 2.13 KB
/
Php80.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
66
<?php
namespace Wieni\wmcodestyle\PhpCsFixer\Config\RuleSet;
final class Php80 extends RuleSetBase
{
/** @var string */
protected $name = 'Wieni (PHP 8.0)';
/** @var array<string, array|bool> */
protected $rules = [
'@Symfony' => true,
'@PHP80Migration' => true,
'@DoctrineAnnotation' => true,
'binary_operator_spaces' => ['operators' => ['|' => null]],
'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,
'@PHP80Migration:risky' => true,
'comment_to_phpdoc' => true,
'declare_strict_types' => false,
'native_constant_invocation' => false,
'native_function_invocation' => false,
];
/** @var int */
protected $targetPhpVersion = 80000;
}