Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back toNative() alias of toDateTimeImmutable() #427

Merged
merged 1 commit into from
Sep 24, 2023
Merged

Conversation

othercorey
Copy link
Member

@othercorey othercorey commented Sep 24, 2023

refs #424

We want to keep BC with 3.0 as users have changed code to call toNative(). Users can decide which makes their code clearer or cleaner.

@othercorey othercorey added this to the 3.x milestone Sep 24, 2023
@othercorey othercorey merged commit 11b1f05 into 3.x Sep 24, 2023
7 checks passed
@othercorey othercorey deleted the add-tonative branch September 24, 2023 02:02
@dereuromark
Copy link
Member

Ohh Chronos itself is missing here it seems

markstory added a commit that referenced this pull request Oct 2, 2023
This was accidently removed in the shuffle of #417 and #427

Fixes #432
@othercorey
Copy link
Member Author

Chrnis is already DateTimeImmutable

@othercorey
Copy link
Member Author

But it could be a BC break although its a weird conversation

@dereuromark
Copy link
Member

dereuromark commented Oct 2, 2023

But it still isnt the actual native object, so it does make sense to keep toNative() everywhere if someone really needs the native class type.
Especially for BC reasons, though, this method for sure can only be deprecated now, not removed.

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.

2 participants