Skip to content

Conversation

@imliam
Copy link
Contributor

@imliam imliam commented Oct 4, 2025

Laravel's Date facade has some benefits; notably that it adheres to whatever handler is configured (so if you call Date::use(CarbonImmutable::class) in a service provider, all your dates will be immutable).

- Carbon::now();
+ Date::now();

@driftingly driftingly merged commit 44cde57 into driftingly:main Oct 4, 2025
5 checks passed
@Tamas-hi
Copy link

RectorPHP has a prepared set called "carbon" that converts datetime to carbon.
I think we have a conflict here, and makes it harder for the end user which one to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants