Skip to content

DateInterval::createFromDateString wrong return type for 8.3+ #14479

@sunkan

Description

@sunkan

In php8.3 the signature changed from

DateInterval::createFromDateString(string $datetime): DateInterval|false

to

DateInterval::createFromDateString(string $datetime): DateInterval

now it instead throws an DateMalformedStringException

Reference: https://www.php.net/manual/en/dateinterval.createfromdatestring.php

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