Commit 111caee
Remove native return type from __toString() test to avoid lint failure
The native `never` return type on `__toString()` causes a lint error
since PHP requires `__toString()` to declare `string` as its return type.
Use a `@return never` PHPDoc instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9dc46fd commit 111caee
File tree
2 files changed
+3
-2
lines changed- tests/PHPStan/Rules/Exceptions
- data
2 files changed
+3
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
742 | | - | |
| 742 | + | |
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments