Commit 5e20c36
committed
Add multi-variant overloads for
- Replace the single `PDOStatement::fetchAll` signature (which combined all
parameter types into one union) with proper multi-variant overloads matching
`PDO::query` and `PDOStatement::setFetchMode` patterns
- Add variant '1 for FETCH_COLUMN mode (int $mode, int $colno)
- Add variant '2 for FETCH_CLASS mode (int $mode, string $classname, ?array $ctorargs)
- Add variant '3 for FETCH_FUNC mode (int $mode, callable $callback)
- Update both base functionMap.php and functionMap_php80delta.php
- Verified PDO::query and PDOStatement::setFetchMode already had correct overloadsPDOStatement::fetchAll() in function signature map1 parent ca00199 commit 5e20c36
4 files changed
Lines changed: 47 additions & 2 deletions
File tree
- resources
- tests/PHPStan/Rules/Methods
- data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7833 | 7833 | | |
7834 | 7834 | | |
7835 | 7835 | | |
7836 | | - | |
| 7836 | + | |
| 7837 | + | |
| 7838 | + | |
| 7839 | + | |
7837 | 7840 | | |
7838 | 7841 | | |
7839 | 7842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4062 | 4062 | | |
4063 | 4063 | | |
4064 | 4064 | | |
| 4065 | + | |
| 4066 | + | |
| 4067 | + | |
| 4068 | + | |
| 4069 | + | |
| 4070 | + | |
| 4071 | + | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
4065 | 4075 | | |
4066 | 4076 | | |
4067 | 4077 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments