intelephense

1.14.41.16.1
lib/stub/mongodb/BSON/Timestamp.php
lib/stub/mongodb/BSON/Timestamp.php
+4−21
Index: package/lib/stub/mongodb/BSON/Timestamp.php
===================================================================
--- package/lib/stub/mongodb/BSON/Timestamp.php
+++ package/lib/stub/mongodb/BSON/Timestamp.php
@@ -3,15 +3,15 @@
 namespace MongoDB\BSON;
 
 use JsonSerializable;
 use MongoDB\Driver\Exception\InvalidArgumentException;
-use MongoDB\Driver\Exception\UnexpectedValueException;
+use Stringable;
 
 /**
  * Represents a BSON timestamp, which is an internal MongoDB type not intended for general date storage.
  * @link https://php.net/manual/en/class.mongodb-bson-timestamp.php
  */
-final class Timestamp implements TimestampInterface, Type, \Serializable, JsonSerializable
+final class Timestamp implements TimestampInterface, JsonSerializable, Type, Stringable
 {
     /**
      * Construct a new Timestamp
      * @link https://php.net/manual/en/mongodb-bson-timestamp.construct.php
@@ -23,9 +23,9 @@
      * @link https://php.net/manual/en/mongodb-bson-timestamp.tostring.php
      */
     final public function __toString(): string {}
 
-    public static function __set_state(array $properties) {}
+    public static function __set_state(array $properties): self {}
 
     /**
      * Returns the increment component of this TimestampInterface
      * @link https://secure.php.net/manual/en/mongodb-bson-timestampinterface.getincrement.php
@@ -40,29 +40,12 @@
      */
     final public function getTimestamp(): int {}
 
     /**
-     * Serialize a Timestamp
-     * @since 1.2.0
-     * @link https://www.php.net/manual/en/mongodb-bson-timestamp.serialize.php
-     * @throws InvalidArgumentException
-     */
-    final public function serialize(): string {}
-
-    /**
-     * Unserialize a Timestamp
-     * @since 1.2.0
-     * @link https://www.php.net/manual/en/mongodb-bson-timestamp.unserialize.php
-     * @throws InvalidArgumentException on argument parsing errors or if the properties are invalid
-     * @throws UnexpectedValueException if the properties cannot be unserialized (i.e. serialized was malformed)
-     */
-    final public function unserialize(string $data): void {}
-
-    /**
      * Returns a representation that can be converted to JSON
      * @since 1.2.0
      * @link https://www.php.net/manual/en/mongodb-bson-timestamp.jsonserialize.php
      * @return mixed data which can be serialized by json_encode()
      * @throws InvalidArgumentException on argument parsing errors
      */
-    final public function jsonSerialize() {}
+    final public function jsonSerialize(): mixed {}
 }