Commit 0a3e8f1
committed
fix: Add default case to validate_file_to_edit() switch
The switch only handled codes 1 and 3 from validate_file(),
but code 2 (absolute Windows drive paths) fell through without
returning or dying. This caused PHPStan to warn about a missing
return statement for the string|never return type.1 parent 12a2bc5 commit 0a3e8f1
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| 754 | + | |
754 | 755 | | |
755 | 756 | | |
756 | 757 | | |
| |||
0 commit comments