File tree 4 files changed +13
-4
lines changed
4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
class Psr4Sniff implements Sniff
13
13
{
14
+ /** @var array<string, string> */
14
15
public array $ psr4 = [];
16
+ /** @var list<string> */
15
17
public array $ exclude = [];
16
18
17
19
/**
@@ -112,10 +114,6 @@ private function checkPsr4(
112
114
$ filePath = str_replace ('\\' , '/ ' , $ file ->getFilename ());
113
115
114
116
foreach ($ this ->psr4 as $ baseNamespace => $ foldersStr ) {
115
- if (!is_string ($ baseNamespace ) || !is_string ($ foldersStr )) {
116
- continue ;
117
- }
118
-
119
117
$ baseNamespace = trim ($ baseNamespace , '\\' );
120
118
if (strpos ($ namespace , $ baseNamespace ) !== 0 ) {
121
119
continue ;
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class VariablesNameSniff implements Sniff
48
48
];
49
49
50
50
public string $ checkType = 'camelCase ' ;
51
+ /** @var list<string> */
51
52
public array $ ignoredNames = [];
52
53
public bool $ ignoreLocalVars = false ;
53
54
public bool $ ignoreProperties = false ;
Original file line number Diff line number Diff line change 120
120
Slevomat
121
121
See https://github.com/slevomat/coding-standard
122
122
-->
123
+ <rule ref =" SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace" >
124
+ <type >warning</type >
125
+ </rule >
123
126
<rule ref =" SlevomatCodingStandard.Functions.ArrowFunctionDeclaration" >
124
127
<type >warning</type >
125
128
<properties >
131
134
<property name =" spacesCountAroundEqualsSign" type =" integer" value =" 0" />
132
135
</properties >
133
136
</rule >
137
+ <rule ref =" SlevomatCodingStandard.TypeHints.PropertyTypeHint" />
134
138
<rule ref =" SlevomatCodingStandard.Whitespaces.DuplicateSpaces" >
135
139
<type >warning</type >
136
140
<properties >
169
173
</rule >
170
174
<rule ref =" Generic.WhiteSpace.LanguageConstructSpacing" />
171
175
<rule ref =" Generic.WhiteSpace.SpreadOperatorSpacingAfter" />
176
+ <rule ref =" Squiz.Arrays.ArrayBracketSpacing" >
177
+ <type >warning</type >
178
+ </rule >
172
179
<rule ref =" Squiz.Classes.LowercaseClassKeywords" />
173
180
<rule ref =" Squiz.PHP.CommentedOutCode" >
174
181
<properties >
Original file line number Diff line number Diff line change 6
6
7
7
final class SniffMessages
8
8
{
9
+ /** @var array<int, string> */
9
10
private array $ warnings ;
11
+ /** @var array<int, string> */
10
12
private array $ errors ;
13
+ /** @var array<int, string> */
11
14
private array $ messages ;
12
15
private bool $ messagesContainTotal = false ;
13
16
You can’t perform that action at this time.
0 commit comments