Skip to content
New issue

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

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

Already on GitHub? # to your account

PHP 8.2 deprecation: Return type of Safe\DateTimeImmutable::createFromMutable($dateTime): Safe\DateTimeImmutable #413

Closed
staabm opened this issue Mar 5, 2023 · 3 comments

Comments

@staabm
Copy link
Collaborator

staabm commented Mar 5, 2023

on PHP 8.2 we see deprecation errors like

Deprecated: Return type of Safe\DateTimeImmutable::createFromMutable($dateTime): Safe\DateTimeImmutable should either be compatible with DateTimeImmutable::createFromMutable(DateTime $object): static, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/gharlan/workspace/redaxo/redaxo/src/addons/rexstan/vendor/thecodingmachine/safe/lib/DateTimeImmutable.php on line 239

@ajmrive
Copy link

ajmrive commented Mar 21, 2023

hello there, same issue here, any news about this? thanks!

@jakubvojacek
Copy link

There already is a PR solving this.

#406

@Kharhamel
Copy link
Collaborator

This was deployed in v2.5.0, sorry it took so long

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants