File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 14
14
"dealerdirect/phpcodesniffer-composer-installer" : " ^0.7.0" ,
15
15
"escapestudios/symfony2-coding-standard" : " ^3.6" ,
16
16
"phpmd/phpmd" : " ^2.6" ,
17
- "slevomat/coding-standard" : " ^6.0 " ,
17
+ "slevomat/coding-standard" : " ^7.0.1 " ,
18
18
"squizlabs/php_codesniffer" : " ^3.4"
19
19
},
20
20
"autoload" : {
Original file line number Diff line number Diff line change 33
33
declare(strict_types=1) (with an optional semi-colon terminator). -->
34
34
<rule ref =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes" >
35
35
<properties >
36
- <property name =" newlinesCountBetweenOpenTagAndDeclare" value =" 1" />
36
+ <property name =" linesCountBeforeDeclare" value =" 0" />
37
+ <property name =" linesCountAfterDeclare" value =" 1" />
37
38
<property name =" spacesCountAroundEqualsSign" value =" 0" />
38
39
</properties >
39
40
</rule >
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
18
18
19
19
20
20
FILE: tests/incorrect/strict-types.php
21
- ------------------------------------------------------------------------------------------
21
+ ----------------------------------------------------------------------
22
22
FOUND 2 ERRORS AFFECTING 1 LINE
23
- ------------------------------------------------------------------------------------------
24
- 1 | ERROR | [x] Expected 1 newlines between PHP open tag and declare statement, found 0.
23
+ ----------------------------------------------------------------------
24
+ 1 | ERROR | [x] Expected 0 lines before declare statement, found 0.
25
25
1 | ERROR | [x] Expected strict_types=1, found strict_types = 1.
26
- ------------------------------------------------------------------------------------------
26
+ ----------------------------------------------------------------------
27
27
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
28
- ------------------------------------------------------------------------------------------
28
+ ----------------------------------------------------------------------
29
29
30
30
31
31
FILE: tests/incorrect/type-hints.php
You can’t perform that action at this time.
0 commit comments