Skip to content

Commit a948ff5

Browse files
Douglas Greenshieldsshieldo
authored andcommitted
fix: correct breaking config for CouplingBetweenObjects, and require at least 2.7
1 parent 4a56778 commit a948ff5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"php": ">=7.1",
66
"phpstan/phpstan-shim": "@stable",
77
"phpstan/phpstan-strict-rules": "@stable",
8-
"phpmd/phpmd": "@stable",
8+
"phpmd/phpmd": "^2.7",
99
"squizlabs/php_codesniffer": "@stable",
1010
"slevomat/coding-standard": "@stable"
1111
}

phpmd.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</rule>
2121
<rule ref="rulesets/design.xml/CouplingBetweenObjects">
2222
<properties>
23-
<property name="minimum" value="21" />
23+
<property name="maximum" value="21" />
2424
</properties>
2525
</rule>
2626

@@ -38,6 +38,7 @@
3838
<rule ref="rulesets/cleancode.xml">
3939
<exclude name="BooleanArgumentFlag" />
4040
<exclude name="StaticAccess" />
41+
<exclude name="MissingImport" />
4142
</rule>
4243

4344
<rule ref="rulesets/controversial.xml" />

0 commit comments

Comments
 (0)