Skip to content

Commit 001815f

Browse files
committed
Add the UnusedTraitRule to the extension config. Require phpstan 1.10.30 minimum for checking if only analysing files.
1 parent 4eb6ad3 commit 001815f

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
"webmozart/assert": "^1.11"
1919
},
2020
"require-dev": {
21+
"phpstan/phpstan": "^1.10.30",
2122
"phpunit/phpunit": "^9.6",
22-
"xactsystems/phpstan-dev": "dev-master"
23+
"xactsystems/phpstan-dev": "^1.0"
2324
},
2425
"license": "MIT",
2526
"autoload": {
@@ -47,6 +48,5 @@
4748
"config/extension.neon"
4849
]
4950
}
50-
},
51-
"minimum-stability": "dev"
51+
}
5252
}

composer.lock

Lines changed: 9 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/extension.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ services:
3434

3535
rules:
3636
- Xact\PHPStan\Rules\UnusedClassRule
37+
- Xact\PHPStan\Rules\UnusedTraitRule

0 commit comments

Comments
 (0)