Skip to content

Commit

Permalink
Require PHP CodeSniffer 3.5.0 at least
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Oct 4, 2019
1 parent e82f6ad commit bffd98e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 2.1.0 - unreleased
## 2.2.0 - unreleased

ADDED:

Expand All @@ -8,6 +8,12 @@ REMOVED:

FIXED:

## 2.1.0 - 2019-10-04

CHANGED:

- Require PHP CodeSniffer 3.5.0 at least

## 2.0.1 - 2019-08-22

REMOVED:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"php": "^7.4.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
"slevomat/coding-standard": "^5.0.0",
"squizlabs/php_codesniffer": "^3.4.0"
"squizlabs/php_codesniffer": "^3.5.0"
},
"require-dev": {
"woohoolabs/releaser": "^1.1.0"
Expand Down
9 changes: 0 additions & 9 deletions src/WoohooLabs/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,6 @@
<!-- Forbid use of longhand cast operators -->
<rule ref="SlevomatCodingStandard.PHP.TypeCast"/>

<!-- Require presence of declare(strict_types=1) -->
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<properties>
<property name="newlinesCountBetweenOpenTagAndDeclare" value="1"/>
<property name="spacesCountAroundEqualsSign" value="0"/>
<property name="newlinesCountAfterDeclare" value="2"/>
</properties>
</rule>

<!-- Forbid useless parentheses -->
<rule ref="SlevomatCodingStandard.PHP.UselessParentheses"/>

Expand Down

0 comments on commit bffd98e

Please sign in to comment.