Skip to content

specify Safe\createFromMutable return changing type for php8.2#406

Merged
Kharhamel merged 2 commits into
thecodingmachine:masterfrom
helyakin:DateTimeImmutable-ReturnWillChange
Apr 5, 2023
Merged

specify Safe\createFromMutable return changing type for php8.2#406
Kharhamel merged 2 commits into
thecodingmachine:masterfrom
helyakin:DateTimeImmutable-ReturnWillChange

Conversation

@helyakin

Copy link
Copy Markdown
Contributor

When migrating to PHP8.2 I have the following issue with Safe\createFromMutable

Capture d’écran 2022-12-28 à 15 07 43

Adding #[\ReturnTypeWillChange] fixes it.

I don't know if it's the best solution, but it's my proposition.

Feel free to tell me what should be done if this not the appropriate solution

Comment thread lib/DateTimeImmutable.php Outdated
@helyakin

helyakin commented Jan 27, 2023

Copy link
Copy Markdown
Contributor Author

I've opened this PR one month ago, would it be possible to have a review ?
That would be very nice of you =)

@akondas

akondas commented Feb 18, 2023

Copy link
Copy Markdown

Can we merge and release this?

@Kharhamel

Copy link
Copy Markdown
Collaborator

Sorry I stopped checking on the project for a will. Before I deploy this,, I need to fix a bunch of things, mostly related to all the functions that needs to be deprecated. I will have some holidays this week, hope I can get this project back in shape.

@Kharhamel

Copy link
Copy Markdown
Collaborator

this is deployed in v2.5.0

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.

4 participants