Repository navigation
Commit 33fa2f9
committed
Warn on deprecated per-version PHP set in withSets(), keep addPhpLevelSets() version arg
withSets() emits an E_USER_DEPRECATED notice when a SetList::PHP_* set file is
passed, pointing to withPhpSets()/withPhpLevel(). Detected by file path, so the
deprecated constants are not referenced internally.
addPhpLevelSets() keeps the non-nullable picked version and stores it; an
explicit withPhpSets(phpXX) version acts as a ceiling via isPhpSetsVersionPicked,
while the composer.json fallback does not, preserving polyfill package support.
Storing the version also keeps the argument used, so it is not stripped as dead.
Claude-Session: https://claude.ai/code/session_014Q25TQ4b7b13UQQXScu3Fg1 parent 33e9182 commit 33fa2f9
3 files changed
Lines changed: 86 additions & 5 deletions
File tree
- src/Configuration
- tests/Configuration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
172 | 180 | | |
173 | 181 | | |
174 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
175 | 189 | | |
176 | 190 | | |
177 | 191 | | |
| |||
184 | 198 | | |
185 | 199 | | |
186 | 200 | | |
187 | | - | |
| 201 | + | |
188 | 202 | | |
189 | 203 | | |
190 | 204 | | |
| |||
408 | 422 | | |
409 | 423 | | |
410 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
411 | 437 | | |
412 | 438 | | |
413 | 439 | | |
| |||
553 | 579 | | |
554 | 580 | | |
555 | 581 | | |
556 | | - | |
| 582 | + | |
557 | 583 | | |
558 | 584 | | |
559 | 585 | | |
560 | | - | |
| 586 | + | |
561 | 587 | | |
562 | | - | |
| 588 | + | |
563 | 589 | | |
564 | 590 | | |
565 | 591 | | |
| |||
1135 | 1161 | | |
1136 | 1162 | | |
1137 | 1163 | | |
1138 | | - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1139 | 1168 | | |
1140 | 1169 | | |
| 1170 | + | |
| 1171 | + | |
1141 | 1172 | | |
| 1173 | + | |
1142 | 1174 | | |
1143 | 1175 | | |
1144 | 1176 | | |
| |||
| 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 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments