File tree 4 files changed +9
-8
lines changed 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 277
277
<rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace" />
278
278
279
279
<!-- PHP 8 specific, only relevant for those PHP 8.0+ -->
280
- <rule ref =" SlevomatCodingStandard.TypeHints.UnionTypeHintFormat " >
280
+ <rule ref =" SlevomatCodingStandard.TypeHints.DNFTypeHintFormat " >
281
281
<properties >
282
- <property name =" withSpaces" value =" no" />
282
+ <property name =" withSpacesAroundOperators" value =" no" />
283
+ <property name =" withSpacesInsideParentheses" value =" no" />
283
284
</properties >
284
285
</rule >
285
286
Original file line number Diff line number Diff line change 13
13
],
14
14
"require" : {
15
15
"php" : " >=8.1" ,
16
- "php-collective/code-sniffer" : " ^0.2.6 " ,
17
- "slevomat/coding-standard" : " ^8.3 .0" ,
16
+ "php-collective/code-sniffer" : " ^0.2.14 " ,
17
+ "slevomat/coding-standard" : " ^8.16 .0" ,
18
18
"squizlabs/php_codesniffer" : " ^3.7.0"
19
19
},
20
20
"require-dev" : {
21
- "phpunit/phpunit" : " ^10.3" ,
22
- "phpstan/phpstan" : " ^1.0 .0"
21
+ "phpunit/phpunit" : " ^10.3 || ^11.5 || 12.0 " ,
22
+ "phpstan/phpstan" : " ^2.1 .0"
23
23
},
24
24
"autoload" : {
25
25
"psr-4" : {
Original file line number Diff line number Diff line change @@ -186,11 +186,11 @@ SlevomatCodingStandard (45 sniffs)
186
186
- SlevomatCodingStandard.PHP.ShortList
187
187
- SlevomatCodingStandard.PHP.TypeCast
188
188
- SlevomatCodingStandard.PHP.UselessSemicolon
189
+ - SlevomatCodingStandard.TypeHints.DNFTypeHintFormat
189
190
- SlevomatCodingStandard.TypeHints.LongTypeHints
190
191
- SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue
191
192
- SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing
192
193
- SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing
193
- - SlevomatCodingStandard.TypeHints.UnionTypeHintFormat
194
194
- SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable
195
195
- SlevomatCodingStandard.Whitespaces.DuplicateSpaces
196
196
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ parameters:
5
5
bootstrapFiles :
6
6
- %rootDir%/../../../tests/phpstan_bootstrap.php
7
7
ignoreErrors :
8
+ - identifier : missingType.iterableValue
8
9
- ' #Unreachable statement - code above always terminates. #'
9
- checkMissingIterableValueType : false
You can’t perform that action at this time.
0 commit comments