Skip to content

Commit eb010a0

Browse files
authored
Replace tomasvotruba/unused-public with shipmonk/dead-code-detector (#791)
1 parent 722063f commit eb010a0

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"rector/jack": "^1.0",
1616
"rector/rector-src": "dev-main",
1717
"rector/swiss-knife": "^2.6",
18+
"shipmonk/dead-code-detector": "^1.4",
1819
"symplify/easy-coding-standard": "^13.2",
1920
"symplify/phpstan-extensions": "^12.0",
2021
"symplify/phpstan-rules": "^14.13.1",
2122
"tomasvotruba/class-leak": "^2.1",
2223
"tomasvotruba/type-coverage": "^2.3",
23-
"tomasvotruba/unused-public": "^2.2",
2424
"tracy/tracy": "^2.12"
2525
},
2626
"autoload": {

‎phpstan.neon‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ parameters:
3535
narrow_return: true
3636

3737
ignoreErrors:
38+
# DI container constructors are not dead code
39+
-
40+
identifier: shipmonk.deadMethod
41+
message: '#^Unused .*?::__construct$#'
42+
3843
# phpstan false positive
3944
- '#Parameter \#1 \$className of method Rector\\PhpParser\\AstResolver\:\:resolveClassMethod\(\) expects class\-string, string given#'
4045

0 commit comments

Comments
 (0)