File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 277277 <rule ref =" Squiz.WhiteSpace.SuperfluousWhitespace" />
278278
279279 <!-- PHP 8 specific, only relevant for those PHP 8.0+ -->
280- <rule ref =" SlevomatCodingStandard.TypeHints.UnionTypeHintFormat " >
280+ <rule ref =" SlevomatCodingStandard.TypeHints.DNFTypeHintFormat " >
281281 <properties >
282- <property name =" withSpaces" value =" no" />
282+ <property name =" withSpacesAroundOperators" value =" no" />
283+ <property name =" withSpacesInsideParentheses" value =" no" />
283284 </properties >
284285 </rule >
285286
Original file line number Diff line number Diff line change 1313 ],
1414 "require" : {
1515 "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" ,
1818 "squizlabs/php_codesniffer" : " ^3.7.0"
1919 },
2020 "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"
2323 },
2424 "autoload" : {
2525 "psr-4" : {
Original file line number Diff line number Diff line change @@ -186,11 +186,11 @@ SlevomatCodingStandard (45 sniffs)
186186- SlevomatCodingStandard.PHP.ShortList
187187- SlevomatCodingStandard.PHP.TypeCast
188188- SlevomatCodingStandard.PHP.UselessSemicolon
189+ - SlevomatCodingStandard.TypeHints.DNFTypeHintFormat
189190- SlevomatCodingStandard.TypeHints.LongTypeHints
190191- SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue
191192- SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing
192193- SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing
193- - SlevomatCodingStandard.TypeHints.UnionTypeHintFormat
194194- SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable
195195- SlevomatCodingStandard.Whitespaces.DuplicateSpaces
196196
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ parameters:
55 bootstrapFiles :
66 - %rootDir%/../../../tests/phpstan_bootstrap.php
77 ignoreErrors :
8+ - identifier : missingType.iterableValue
89 - ' #Unreachable statement - code above always terminates. #'
9- checkMissingIterableValueType : false
You can’t perform that action at this time.
0 commit comments