intelephense

1.14.41.16.1
lib/stub/mongodb/BSON/Binary.php
lib/stub/mongodb/BSON/Binary.php
+9−21
Index: package/lib/stub/mongodb/BSON/Binary.php
===================================================================
--- package/lib/stub/mongodb/BSON/Binary.php
+++ package/lib/stub/mongodb/BSON/Binary.php
@@ -3,15 +3,15 @@
 namespace MongoDB\BSON;
 
 use JsonSerializable;
 use MongoDB\Driver\Exception\InvalidArgumentException;
-use MongoDB\Driver\Exception\UnexpectedValueException;
+use Stringable;
 
 /**
  * Class Binary
  * @link https://php.net/manual/en/class.mongodb-bson-binary.php
  */
-final class Binary implements Type, BinaryInterface, \Serializable, JsonSerializable
+final class Binary implements Type, BinaryInterface, JsonSerializable, Stringable
 {
     public const TYPE_GENERIC = 0, TYPE_FUNCTION = 1;
     public const TYPE_OLD_BINARY = 2;
     public const TYPE_OLD_UUID = 3;
@@ -26,8 +26,13 @@
     /**
      * @since 1.12.0
      */
     public const TYPE_COLUMN = 7;
+
+    /**
+     * @since 1.17.0
+     */
+    public const TYPE_SENSITIVE = 8;
     public const TYPE_USER_DEFINED = 128;
 
     /**
      * Binary constructor.
@@ -46,38 +51,21 @@
      * @link https://php.net/manual/en/mongodb-bson-binary.gettype.php
      */
     final public function getType(): int {}
 
-    public static function __set_state(array $properties) {}
+    public static function __set_state(array $properties): self {}
 
     /**
      * Returns the Binary's data
      * @link https://www.php.net/manual/en/mongodb-bson-binary.tostring.php
      */
     final public function __toString(): string {}
 
     /**
-     * Serialize a Binary
-     * @since 1.2.0
-     * @link https://www.php.net/manual/en/mongodb-bson-binary.serialize.php
-     * @throws InvalidArgumentException
-     */
-    final public function serialize(): string {}
-
-    /**
-     * Unserialize a Binary
-     * @since 1.2.0
-     * @link https://www.php.net/manual/en/mongodb-bson-binary.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) {}
-
-    /**
      * Returns a representation that can be converted to JSON
      * @since 1.2.0
      * @link https://www.php.net/manual/en/mongodb-bson-binary.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 {}
 }