Commit 1fbad55
committed
Inline one-line wrappers around polymorphic Type methods
Follow-up cleanup across #5611, #5612, #5613:
- `FuncCallHandler::getArrayWalkResultType()` and
`getArraySortDoNotPreserveListFunctionType()` were single-statement
wrappers around `Type::mapValueType()` / `Type::makeListMaybe()`.
Both private, both fully replaced by their polymorphic call;
inline at the two/one call sites and delete the helpers.
- `InstanceofHandler` and `TypeSpecifier` (the `instanceof <expr>`
branch) used a throwaway `$classType = $scope->getType(...)` only
to immediately overwrite it with `$result->type`. Drop the
intermediate; chain the call.
Pure simplification: full test suite + phpstan + cs pass.1 parent 4863c88 commit 1fbad55
3 files changed
Lines changed: 7 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
278 | 280 | | |
279 | 281 | | |
280 | 282 | | |
| |||
478 | 480 | | |
479 | 481 | | |
480 | 482 | | |
481 | | - | |
| 483 | + | |
482 | 484 | | |
483 | 485 | | |
484 | 486 | | |
| |||
721 | 723 | | |
722 | 724 | | |
723 | 725 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | 726 | | |
735 | 727 | | |
736 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
0 commit comments