Skip to content

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

@staabm

Description

@staabm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions