Repository navigation
Commit 7dbc598
committed
Infer an error for an intersection raised to an invalid exponent
A member's ErrorType is a MixedType, so intersecting it with the other
members' powers hid it: numeric-string ** 'abc' was float|int although it
always throws a TypeError. An erroring member now decides for the
intersection.
Amp-Thread-ID: https://ampcode.com/threads/T-01a1a1e7-5e72-7235-a4b2-ba1b689f7e1b1 parent 224dcab commit 7dbc598
4 files changed
Lines changed: 52 additions & 3 deletions
File tree
- src/Type
- tests/PHPStan/Analyser/nsrt
- turbo-ext
- src
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1776 | 1776 | | |
1777 | 1777 | | |
1778 | 1778 | | |
1779 | | - | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
1780 | 1791 | | |
1781 | 1792 | | |
1782 | 1793 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2139 | 2139 | | |
2140 | 2140 | | |
2141 | 2141 | | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2142 | 2145 | | |
2143 | 2146 | | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
2144 | 2150 | | |
2145 | | - | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
2146 | 2161 | | |
2147 | 2162 | | |
2148 | 2163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7799 | 7799 | | |
7800 | 7800 | | |
7801 | 7801 | | |
7802 | | - | |
| 7802 | + | |
7803 | 7803 | | |
7804 | 7804 | | |
7805 | 7805 | | |
| |||
0 commit comments