Skip to content

Commit aa61a28

Browse files
committed
Rename deprecated sniff
1 parent cd61bd7 commit aa61a28

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88

9-
## [Unreleased](https://github.com/inspirum/coding-standard-php/compare/v1.7.0...master)
9+
## [Unreleased](https://github.com/inspirum/coding-standard-php/compare/v1.7.1...master)
10+
11+
12+
## [v1.7.0 (2023-02-08)](https://github.com/inspirum/coding-standard-php/compare/v1.7.0...v1.7.1)
13+
### Fixed
14+
- Use `SlevomatCodingStandard.TypeHints.DNFTypeHintFormat` instead of `SlevomatCodingStandard.TypeHints.UnionTypeHintFormat`
1015

1116

1217
## [v1.7.0 (2023-02-08)](https://github.com/inspirum/coding-standard-php/compare/v1.6.0...v1.7.0)

InspirumCodingStandard/ruleset.xml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,43 @@
11
<?xml version="1.0"?>
22
<ruleset name="Inspirum Coding Standard" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../vendor/squizlabs/php_codesniffer/phpcs.xsd">
33
<rule ref="Doctrine">
4-
<exclude name="Generic.Files.LineLength"/>
5-
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/>
6-
<exclude name="SlevomatCodingStandard.Commenting.UselessFunctionDocComment.UselessDocComment"/>
7-
<exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion.RequiredExplicitAssertion"/>
84
<exclude name="Generic.CodeAnalysis.UselessOverridingMethod.Found"/>
9-
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit.EarlyExitNotUsed"/>
10-
<exclude name="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint.UselessVarAnnotation"/>
11-
<exclude name="Squiz.PHP.NonExecutableCode.Unreachable"/>
5+
<exclude name="Generic.Files.LineLength"/>
6+
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSame"/>
127
<exclude name="Squiz.Arrays.ArrayDeclaration.MultiLineNotAllowed"/>
138
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/>
9+
<exclude name="Squiz.PHP.NonExecutableCode.Unreachable"/>
10+
<exclude name="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming.SuperfluousSuffix"/>
11+
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment"/>
1412
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLinePropertyDocComment.MultiLinePropertyComment"/>
13+
<exclude name="SlevomatCodingStandard.Commenting.UselessFunctionDocComment.UselessDocComment"/>
14+
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit.EarlyExitNotUsed"/>
1515
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions.NonFullyQualified"/>
16-
<exclude name="SlevomatCodingStandard.Commenting.RequireOneLineDocComment.MultiLineDocComment"/>
17-
<exclude name="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.DisallowedShortNullable"/>
18-
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSame"/>
16+
<exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion.RequiredExplicitAssertion"/>
17+
<exclude name="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat.DisallowedShortNullable"/>
18+
<exclude name="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint.UselessVarAnnotation"/>
1919
</rule>
2020
<rule ref="Generic.Formatting.SpaceAfterNot">
2121
<properties>
2222
<property name="spacing" value="0"/>
2323
</properties>
2424
</rule>
25-
<rule ref="SlevomatCodingStandard.Namespaces.UseSpacing">
25+
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
2626
<properties>
27-
<property name="linesCountBetweenUseTypes" value="0"/>
27+
<property name="caseSensitive" value="true"/>
28+
<property name="psr12Compatible" value="true"/>
2829
</properties>
2930
</rule>
30-
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions" />
3131
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/>
32+
<rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions" />
3233
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
3334
<properties>
3435
<property name="searchAnnotations" value="false"/>
3536
</properties>
3637
</rule>
37-
38-
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
38+
<rule ref="SlevomatCodingStandard.Namespaces.UseSpacing">
3939
<properties>
40-
<property name="caseSensitive" value="true"/>
41-
<property name="psr12Compatible" value="true"/>
40+
<property name="linesCountBetweenUseTypes" value="0"/>
4241
</properties>
4342
</rule>
4443
</ruleset>

0 commit comments

Comments
 (0)