Add UTCDateTimeInterface::toDateTimeImmutable

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • PHP Drivers
    • Needed
    • Hide

      If any documentation of UTCDateTimeInterface, add the toDateTimeImmutable method.

      Show
      If any documentation of UTCDateTimeInterface, add the toDateTimeImmutable method.
    • None
    • None
    • None
    • None
    • None
    • None

      The method UTCDateTime::toDateTimeImmutable was added by PHPC-2286.

      Adding a method to an existing interface is a breaking change, it cannot be added before 2.0.

      The interface UTCDateTimeInterface already have `toDateTime`. Adding toDateTimeImmutable for consistency.

            Assignee:
            Jérôme Tamarelle
            Reporter:
            Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: