intelephense

1.14.41.16.1
lib/stub/mongodb/BSON/Regex.php
lib/stub/mongodb/BSON/Regex.php
+4−21
Index: package/lib/stub/mongodb/BSON/Regex.php
===================================================================
--- package/lib/stub/mongodb/BSON/Regex.php
+++ package/lib/stub/mongodb/BSON/Regex.php
@@ -3,15 +3,15 @@
 namespace MongoDB\BSON;
 
 use JsonSerializable;
 use MongoDB\Driver\Exception\InvalidArgumentException;
-use MongoDB\Driver\Exception\UnexpectedValueException;
+use Stringable;
 
 /**
  * Class Regex
  * @link https://php.net/manual/en/class.mongodb-bson-regex.php
  */
-final class Regex implements Type, RegexInterface, \Serializable, JsonSerializable
+final class Regex implements RegexInterface, JsonSerializable, Type, Stringable
 {
     /**
      * Construct a new Regex
      * @link https://php.net/manual/en/mongodb-bson-regex.construct.php
@@ -35,32 +35,15 @@
      * @link https://php.net/manual/en/mongodb-bson-regex.tostring.php
      */
     final public function __toString(): string {}
 
-    public static function __set_state(array $properties) {}
+    public static function __set_state(array $properties): self {}
 
     /**
-     * Serialize a Regex
-     * @since 1.2.0
-     * @link https://www.php.net/manual/en/mongodb-bson-regex.serialize.php
-     * @throws InvalidArgumentException
-     */
-    final public function serialize(): string {}
-
-    /**
-     * Unserialize a Regex
-     * @since 1.2.0
-     * @link https://www.php.net/manual/en/mongodb-bson-regex.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-regex.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 {}
 }