Skip to content

Commit

Permalink
Bump up slevomat coding standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 26, 2022
1 parent 5f04412 commit 81493b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion CakePHP/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,16 @@
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.UselessAnnotation"/>
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
<properties>
<property name="enable" type="boolean" value="true"/>
<property name="withSpaces" value="no"/>
<property name="shortNullable" value="yes"/>
<property name="nullPosition" value="last"/>
</properties>
<exclude-pattern>*/tests/*</exclude-pattern>
</rule>
<rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/>
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/>
<rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/>

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"require": {
"php": ">=7.2.0",
"phpstan/phpdoc-parser": "^1.4.5",
"slevomat/coding-standard": "^6.3.6 || ^7.0",
"squizlabs/php_codesniffer": "^3.6"
"slevomat/coding-standard": "^8.1",
"squizlabs/php_codesniffer": "^3.7.1"
},
"require-dev": {
"phpunit/phpunit": "^7.1"
Expand Down

0 comments on commit 81493b5

Please sign in to comment.