Skip to content

Make subMonth work correctly #10

@dereuromark

Description

@dereuromark

See briannesbitt/Carbon#428

I think it is worth fixing the faulty (unintuitive) behavior of PHP, and making subMonth() work as expected.
To make sure the former behavior can also be used if desired, we could provide a method addMonthsExact() or addMonthsOverflow().

What do you think?
Since the lib is new we do have the change to do that without breaking user land code.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions