File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 13
13
"phpunit/phpunit" : " <7.0"
14
14
},
15
15
"require-dev" : {
16
- "consistence/coding-standard" : " ^3.5 " ,
16
+ "consistence/coding-standard" : " ^3.10 " ,
17
17
"dealerdirect/phpcodesniffer-composer-installer" : " ^0.7.0" ,
18
18
"ergebnis/composer-normalize" : " ^2.0.2" ,
19
19
"phing/phing" : " ^2.16.0" ,
20
20
"php-parallel-lint/php-parallel-lint" : " ^1.2" ,
21
21
"phpstan/phpstan-strict-rules" : " ^0.12" ,
22
22
"phpunit/phpunit" : " ^7.0 || ^8.0 || ^9.0" ,
23
23
"satooshi/php-coveralls" : " ^1.0" ,
24
- "slevomat/coding-standard" : " ^4.7.2 "
24
+ "slevomat/coding-standard" : " ^6.4 "
25
25
},
26
26
"config" : {
27
27
"sort-packages" : true
Original file line number Diff line number Diff line change 17
17
<property name =" newlinesCountBetweenOpenTagAndDeclare" value =" 0" />
18
18
</properties >
19
19
</rule >
20
- <rule ref =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration " >
20
+ <rule ref =" SlevomatCodingStandard.TypeHints.ParameterTypeHint " >
21
21
<properties >
22
22
<property name =" usefulAnnotations" type =" array" value ="
23
23
@dataProvider,
27
27
<exclude name =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification" />
28
28
<exclude name =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification" />
29
29
</rule >
30
+ <rule ref =" SlevomatCodingStandard.TypeHints.PropertyTypeHint" >
31
+ <properties >
32
+ <property name =" enableNativeTypeHint" value =" false" />
33
+ </properties >
34
+ <exclude name =" SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />
35
+ </rule >
36
+ <rule ref =" SlevomatCodingStandard.TypeHints.ReturnTypeHint" >
37
+ <properties >
38
+ <property name =" enableObjectTypeHint" value =" false" />
39
+ </properties >
40
+ <exclude name =" SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
41
+ </rule >
30
42
<rule ref =" SlevomatCodingStandard.ControlStructures.AssignmentInCondition" />
31
- <rule ref =" SlevomatCodingStandard.ControlStructures .DisallowEqualOperators" />
43
+ <rule ref =" SlevomatCodingStandard.Operators .DisallowEqualOperators" />
32
44
<rule ref =" SlevomatCodingStandard.ControlStructures.EarlyExit" />
33
45
<rule ref =" SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming" />
34
46
<rule ref =" SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming" />
You can’t perform that action at this time.
0 commit comments