intelephense

1.14.41.16.1
lib/stub/mongodb/BSON/UTCDateTimeInterface.php
lib/stub/mongodb/BSON/UTCDateTimeInterface.php
+10−3
Index: package/lib/stub/mongodb/BSON/UTCDateTimeInterface.php
===================================================================
--- package/lib/stub/mongodb/BSON/UTCDateTimeInterface.php
+++ package/lib/stub/mongodb/BSON/UTCDateTimeInterface.php
@@ -2,8 +2,9 @@
 
 namespace MongoDB\BSON;
 
 use DateTime;
+use DateTimeImmutable;
 
 /**
  * This interface is implemented by MongoDB\BSON\UTCDateTime but may also be used for type-hinting and userland classes.
  * @link https://www.php.net/manual/en/class.mongodb-bson-utcdatetimeinterface.php
@@ -11,15 +12,21 @@
 interface UTCDateTimeInterface
 {
     /**
      * @link https://www.php.net/manual/en/mongodb-bson-utcdatetimeinterface.todatetime.php
-     * @return DateTime Returns the DateTime representation of this UTCDateTimeInterface. The returned DateTime should use the UTC time zone.
+     * @return DateTime Returns the DateTime representation of this UTCDateTimeInterface. The returned DateTime uses the UTC time zone.
      */
-    public function toDateTime();
+    public function toDateTime(): DateTime;
 
     /**
+     * @link https://www.php.net/manual/en/mongodb-bson-utcdatetimeinterface.todatetimeimmutable.php
+     * @return DateTimeImmutable Returns the DateTimeImmutable representation of this UTCDateTimeInterface. The returned DateTime uses the UTC time zone.
+     */
+    public function toDateTimeImmutable(): DateTimeImmutable;
+
+    /**
      * Returns the string representation of this UTCDateTimeInterface
      * @link https://www.php.net/manual/en/mongodb-bson-utcdatetimeinterface.tostring.php
      * @return string
      */
-    public function __toString();
+    public function __toString(): string;
 }