Skip to content

Upgrade Fixer and Sniffer #48

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 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Fixer and Sniffer do not have the same result of sorting uses.
  • Loading branch information
stanislav-janu committed Jul 11, 2024
commit 0abc20cf83d7fc35aa55a359bcfdf69c244f1c09
5 changes: 5 additions & 0 deletions preset-sniffer/php71.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<ruleset name="PHP 7.1" namespace="Nette">
<rule ref="./Nette.xml"/>

<!-- Fixer and Sniffer do not have the same result of sorting uses. -->
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses">
<exclude-pattern>*\.phpt?</exclude-pattern>
</rule>

<!-- Enforces consistent formatting of return typehints: function foo(): ?int -->
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/>

Expand Down
3 changes: 0 additions & 3 deletions preset-sniffer/php83.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?xml version="1.0"?>
<ruleset name="PHP 8.3" namespace="Nette">
<rule ref="./php82.xml"/>
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses">
<exclude-pattern>*\.php</exclude-pattern>
</rule>

<config name="php_version" value="80300"/>
</ruleset>