Commit eaf8de1
chore(deps): allow nesbot/carbon 3.x for Symfony 7 translation support
Carbon 2.x caps symfony/translation at ^6.0, which blocks consumers
from upgrading to Symfony 7. Carbon 3.x allows symfony/translation
^7.0 || ^8.0, so widening the constraint to ^2.63.0 || ^3.0 unblocks
Symfony 7 upgrades without breaking existing Carbon 2.x consumers.
Changes:
- composer.json: widen nesbot/carbon to ^2.63.0 || ^3.0
- DateField/DatetimeField/TimeField: reject non-string, non-DateTimeInterface
inputs. Carbon 3.x is more permissive than 2.x and treats bool/int values
as Unix timestamps, which silently accepted invalid input (e.g. true).
DurationField already had this guard.
- FieldTypesTest: compare CarbonInterval by spec() instead of whole-object
assertEquals. Carbon 3.x changed internal CarbonInterval properties
(originalInput) breaking whole-object comparison. The interval values
are identical; only the internal Carbon state differs.
All 148 tests pass with both Carbon 2.73.0 and Carbon 3.13.1.1 parent 8410c09 commit eaf8de1
5 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
583 | 590 | | |
584 | 591 | | |
585 | 592 | | |
| |||
0 commit comments