Skip to content

Commit 5b1adcb

Browse files
authored
Nette entrypoint provider (#51)
1 parent bf2981b commit 5b1adcb

File tree

7 files changed

+578
-27
lines changed

7 files changed

+578
-27
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ includes:
1919
## Configuration:
2020
- All entrypoints of your code (controllers, consumers, commands, ...) need to be known to the detector to get proper results
2121
- By default, all overridden methods which declaration originates inside `vendor` are considered entrypoints
22-
- Also, there are some built-in providers for some magic calls that occur in `doctrine`, `symfony`, `phpstan` and `phpunit`
22+
- Also, there are some built-in providers for some magic calls that occur in `doctrine`, `nette`, `symfony`, `phpstan` and `phpunit`
2323
- For everything else, you can implement your own entrypoint provider, just tag it with `shipmonk.deadCode.entrypointProvider` and implement `ShipMonk\PHPStan\DeadCode\Provider\EntrypointProvider`
2424

2525
```neon

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"doctrine/orm": "^2.19 || ^3.0",
2020
"editorconfig-checker/editorconfig-checker": "^10.3.0",
2121
"ergebnis/composer-normalize": "^2.28",
22+
"nette/application": "^3.1",
23+
"nette/component-model": "^3.0",
24+
"nette/utils": "^3.0 || ^4.0",
2225
"phpstan/phpstan-phpunit": "^1.1.1",
2326
"phpstan/phpstan-strict-rules": "^1.2.3",
2427
"phpstan/phpstan-symfony": "^1.4",
@@ -74,7 +77,7 @@
7477
"check:dependencies": "composer-dependency-analyser",
7578
"check:ec": "ec src tests",
7679
"check:tests": "phpunit tests",
77-
"check:types": "phpstan analyse -vvv --ansi",
80+
"check:types": "phpstan analyse -vv --ansi",
7881
"fix:cs": "phpcbf"
7982
}
8083
}

composer.lock

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

0 commit comments

Comments
 (0)