File tree Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 123
123
<rule ref =" SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator" />
124
124
<rule ref =" SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses" />
125
125
<rule ref =" SlevomatCodingStandard.PHP.ShortList" />
126
+ <rule ref =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes" >
127
+ <exclude name =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing" />
128
+ <properties >
129
+ <property name =" linesCountBeforeDeclare" value =" 1" />
130
+ <property name =" linesCountAfterDeclare" value =" 1" />
131
+ <property name =" spacesCountAroundEqualsSign" value =" 0" />
132
+ </properties >
133
+ </rule >
126
134
127
135
<rule ref =" Squiz.Arrays.ArrayDeclaration" />
128
136
<!-- Disable some error messages that we do not want. -->
298
306
<exclude-pattern >*/\.svn/*</exclude-pattern >
299
307
<exclude-pattern >*/\.hg/*</exclude-pattern >
300
308
<exclude-pattern >*/\.bzr/*</exclude-pattern >
301
-
309
+
302
310
<!-- Ignore minified CSS files.-->
303
311
<exclude-pattern >*\.min\.css$</exclude-pattern >
304
312
</ruleset >
Original file line number Diff line number Diff line change @@ -69,12 +69,13 @@ protected function getErrorList(string $testFile): array
69
69
case 'bad.module ' :
70
70
return [
71
71
1 => 1 ,
72
- 12 => 1 ,
73
- 19 => 1 ,
74
- 26 => 1 ,
75
- 33 => 1 ,
76
- 44 => 1 ,
77
- 45 => 1 ,
72
+ 7 => 1 ,
73
+ 14 => 1 ,
74
+ 21 => 1 ,
75
+ 28 => 1 ,
76
+ 35 => 1 ,
77
+ 46 => 1 ,
78
+ 47 => 1 ,
78
79
];
79
80
case 'bad.php ' :
80
81
return [
@@ -404,7 +405,7 @@ protected function getWarningList(string $testFile): array
404
405
{
405
406
switch ($ testFile ) {
406
407
case 'bad.module ' :
407
- return [7 => 1 ];
408
+ return [9 => 1 ];
408
409
case 'bad.php ' :
409
410
return [
410
411
14 => 1 ,
Original file line number Diff line number Diff line change 4
4
* Bad examples of install hooks in a module file.
5
5
*/
6
6
7
+ declare(strict_types = 1);
8
+
7
9
define('UNPREFIXED_CONSTANT', 'invalid');
8
10
9
11
/**
Original file line number Diff line number Diff line change 7
7
* It is used to check sniffs that run on .module files but skip .php files.
8
8
*/
9
9
10
+ declare(strict_types=1);
11
+
10
12
define('GOOD_FOO_BAR', 5);
You can’t perform that action at this time.
0 commit comments