File tree Expand file tree Collapse file tree 3 files changed +22
-6
lines changed
Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 1010 "phpstan/phpstan" : " ^0.12.40"
1111 },
1212 "require-dev" : {
13- "consistence/coding-standard" : " ^3.7 " ,
13+ "consistence/coding-standard" : " ^3.10 " ,
1414 "dealerdirect/phpcodesniffer-composer-installer" : " ^0.7.0" ,
1515 "ergebnis/composer-normalize" : " ^2.0.2" ,
1616 "phing/phing" : " ^2.16.0" ,
1717 "php-parallel-lint/php-parallel-lint" : " ^1.0" ,
1818 "phpstan/phpstan-phpunit" : " ^0.12.6" ,
1919 "phpstan/phpstan-strict-rules" : " ^0.12.1" ,
2020 "phpunit/phpunit" : " ^7.5.18" ,
21- "slevomat/coding-standard" : " ^4.5.2 " ,
21+ "slevomat/coding-standard" : " ^6.4 " ,
2222 "webmozart/assert" : " ^1.7.0"
2323 },
2424 "config" : {
Original file line number Diff line number Diff line change 1717 <property name =" newlinesCountBetweenOpenTagAndDeclare" value =" 0" />
1818 </properties >
1919 </rule >
20- <rule ref =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration " >
20+ <rule ref =" SlevomatCodingStandard.TypeHints.ParameterTypeHint " >
2121 <properties >
2222 <property name =" usefulAnnotations" type =" array" value ="
2323 @dataProvider,
2828 <exclude name =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification" />
2929 <exclude name =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification" />
3030 </rule >
31+ <rule ref =" SlevomatCodingStandard.TypeHints.PropertyTypeHint" >
32+ <properties >
33+ <property name =" enableNativeTypeHint" value =" false" />
34+ </properties >
35+ <exclude name =" SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />
36+ </rule >
37+ <rule ref =" SlevomatCodingStandard.TypeHints.ReturnTypeHint" >
38+ <properties >
39+ <property name =" enableObjectTypeHint" value =" false" />
40+ </properties >
41+ <exclude name =" SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
42+ </rule >
3143 <rule ref =" SlevomatCodingStandard.ControlStructures.AssignmentInCondition" />
32- <rule ref =" SlevomatCodingStandard.ControlStructures .DisallowEqualOperators" />
44+ <rule ref =" SlevomatCodingStandard.Operators .DisallowEqualOperators" />
3345 <rule ref =" SlevomatCodingStandard.ControlStructures.EarlyExit" />
3446 <rule ref =" SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming" />
3547 <rule ref =" SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming" />
Original file line number Diff line number Diff line change @@ -403,7 +403,9 @@ function (Type $type): Type {
403403 return TypeCombinator::removeNull ($ type );
404404 }
405405 );
406- } elseif ($ methodName === 'allNotInstanceOf ' ) {
406+ }
407+
408+ if ($ methodName === 'allNotInstanceOf ' ) {
407409 $ classType = $ scope ->getType ($ node ->args [1 ]->value );
408410 if (!$ classType instanceof ConstantStringType) {
409411 return new SpecifiedTypes ([], []);
@@ -417,7 +419,9 @@ function (Type $type) use ($objectType): Type {
417419 return TypeCombinator::remove ($ type , $ objectType );
418420 }
419421 );
420- } elseif ($ methodName === 'allNotSame ' ) {
422+ }
423+
424+ if ($ methodName === 'allNotSame ' ) {
421425 $ valueType = $ scope ->getType ($ node ->args [1 ]->value );
422426 return $ this ->arrayOrIterable (
423427 $ scope ,
You can’t perform that action at this time.
0 commit comments