Commit bd90e10
Add bisect command for finding first bad PHPStan commit
- New `phpstan bisect` command that performs binary search between two releases
- Downloads phpstan.phar for each tested commit from the phpstan/phpstan repo
- Queries GitHub API (Compare endpoint) for commit list between releases
- Reads GitHub token from GITHUB_TOKEN/GH_TOKEN env vars or ~/.composer/auth.json
- Runs analysis with downloaded phar and asks user if result is good or bad
- Reports first bad commit with phpstan-src commit links from commit description
- Tests for command configuration, token reading, and argument building1 parent b4c5164 commit bd90e10
File tree
3 files changed
+540
-0
lines changed- bin
- src/Command
- tests/PHPStan/Command
3 files changed
+540
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
0 commit comments