Repository navigation
Commit 7279769
committed
Key preg_match_all() pattern-order lists by int<0, max>
RegexArrayShapeMatcher built the list of PREG_PATTERN_ORDER matches as an
IntersectionType of an int-keyed array and AccessoryArrayListType, which is
not normalized. It used to be normalized by the union rules, but since
single arrays are left as they are there, list<string> did not accept it.
Amp-Thread-ID: https://ampcode.com/threads/T-01a21c4a-ca6e-7246-a572-578487f178c31 parent f936452 commit 7279769
3 files changed
Lines changed: 23 additions & 2 deletions
File tree
- src/Type/Php
- tests/PHPStan/Rules/Functions
- data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
387 | 386 | | |
388 | 387 | | |
389 | 388 | | |
390 | | - | |
| 389 | + | |
391 | 390 | | |
392 | 391 | | |
393 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3703 | 3703 | | |
3704 | 3704 | | |
3705 | 3705 | | |
| 3706 | + | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
| 3710 | + | |
3706 | 3711 | | |
3707 | 3712 | | |
3708 | 3713 | | |
| |||
| 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 | + | |
0 commit comments