Commit afc4d67
committed
Consistently treat optional-before-required as required
There was a loophole here when it came to usage with named arguments,
which was not intended. Close the loophole thoroughly by actually
dropping the default value from the signature entirely. The default
is still used to make the type nullable, but not for anything else.1 parent 7331bc7 commit afc4d67
File tree
5 files changed
+49
-15
lines changed- Zend
- tests
- ext/reflection/tests
5 files changed
+49
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6466 | 6466 | | |
6467 | 6467 | | |
6468 | 6468 | | |
6469 | | - | |
6470 | 6469 | | |
6471 | 6470 | | |
6472 | 6471 | | |
| |||
6489 | 6488 | | |
6490 | 6489 | | |
6491 | 6490 | | |
| 6491 | + | |
| 6492 | + | |
| 6493 | + | |
| 6494 | + | |
| 6495 | + | |
| 6496 | + | |
| 6497 | + | |
| 6498 | + | |
| 6499 | + | |
| 6500 | + | |
| 6501 | + | |
6492 | 6502 | | |
6493 | 6503 | | |
6494 | 6504 | | |
| |||
6544 | 6554 | | |
6545 | 6555 | | |
6546 | 6556 | | |
6547 | | - | |
| 6557 | + | |
6548 | 6558 | | |
6549 | 6559 | | |
6550 | 6560 | | |
6551 | 6561 | | |
6552 | 6562 | | |
6553 | | - | |
| 6563 | + | |
| 6564 | + | |
| 6565 | + | |
| 6566 | + | |
| 6567 | + | |
6554 | 6568 | | |
| 6569 | + | |
| 6570 | + | |
| 6571 | + | |
| 6572 | + | |
| 6573 | + | |
| 6574 | + | |
| 6575 | + | |
6555 | 6576 | | |
6556 | 6577 | | |
6557 | 6578 | | |
6558 | 6579 | | |
6559 | 6580 | | |
6560 | | - | |
6561 | | - | |
6562 | | - | |
6563 | | - | |
6564 | 6581 | | |
6565 | 6582 | | |
6566 | 6583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | | - | |
25 | | - | |
0 commit comments