Skip to content

DateInterval from_string property not copied in PHP 8.2 #188

@sidux

Description

@sidux

Since PHP 8.2

The from_string and date_string properties were added for DateInterval instances that were created using the DateInterval::createFromDateString() method.

When cloning this property is not taken into account which causes issues (some DateInterval properties get ignored)

Removing the DateIntervalFilter doesn't work.

Solution example : return new DateInterval($element->format('%rP%yY%mM%dDT%hH%iM%sS'));

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