Commit aceaedf
authored
[StandaloneLineConstructorParamFixer] Ignore constructor without arguments (#32)
* Add failing test for StandaloneLineConstructorParamFixer
When you have a constructor without arguments, the fixer changes it to:
```diff
-protected function __construct() {
+protected function __construct(
+) {
```
Not sure how to solve this.
* Ignore when function has no arguments1 parent bf8f561 commit aceaedf
File tree
2 files changed
+24
-0
lines changed- src/TokenRunner/Analyzer/FixerAnalyzer
- tests/Fixer/Spacing/StandaloneLineConstructorParamFixer/Fixture
2 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
64 | 75 | | |
65 | 76 | | |
66 | 77 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments