Skip to content

Update deprecated UnionTypeHintFormat #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Proton/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<!-- Define unions style -->
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
<properties>
<property name="withSpaces" value="no" />
<property name="withSpacesAroundOperators" value="no" />
<property name="nullPosition" value="last" />
</properties>
</rule>
Expand Down Expand Up @@ -238,7 +238,6 @@
<property name="linesCountAfterDeclare" value="1"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"/>

<rule ref="SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch"/>

Expand Down
6 changes: 3 additions & 3 deletions tests/expected_csv.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ Line,Column,Type,Source
63,62,error,Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine
6,18,error,PSR12.Files.FileHeader.SpacingInsideBlock
6,1,error,SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse
58,60,error,SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.NullTypeHintNotOnLastPosition
58,32,error,SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.NullTypeHintNotOnLastPosition
58,60,error,SlevomatCodingStandard.TypeHints.DNFTypeHintFormat.NullTypeHintNotOnLastPosition
58,32,error,SlevomatCodingStandard.TypeHints.DNFTypeHintFormat.NullTypeHintNotOnLastPosition
53,54,error,SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing.WhitespaceBeforeColon
53,54,error,SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.DisallowedWhitespace
53,54,error,SlevomatCodingStandard.TypeHints.DNFTypeHintFormat.DisallowedWhitespaceAroundOperator
53,52,error,PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeColon
53,20,error,PSR1.Methods.CamelCapsMethodName.NotCamelCaps
53,20,error,SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingAnyTypeHint
Expand Down
Loading