Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2417

Add UTCDateTimeInterface::toDateTimeImmutable

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

      If any documentation of UTCDateTimeInterface, add the toDateTimeImmutable method.

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

      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:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: