chore(deps): allow nesbot/carbon 3.x for Symfony 7 translation support - #80
Merged
courtney-miles merged 1 commit intoJul 27, 2026
Merged
Conversation
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.
pauljura
force-pushed
the
chore/support-carbon-3
branch
from
July 27, 2026 02:44
181f377 to
7101fa9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
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:
All 148 tests pass with both Carbon 2.73.0 and Carbon 3.13.1.
Please preserve this line to notify @courtney-miles (lead of this repository)