intelephense
1.14.41.16.1
lib/stub/mongodb/BSON/ObjectId.phplib/stub/mongodb/BSON/ObjectId.php+4−17
Index: package/lib/stub/mongodb/BSON/ObjectId.php
===================================================================
--- package/lib/stub/mongodb/BSON/ObjectId.php
+++ package/lib/stub/mongodb/BSON/ObjectId.php
@@ -3,14 +3,15 @@
namespace MongoDB\BSON;
use JsonSerializable;
use MongoDB\Driver\Exception\InvalidArgumentException;
+use Stringable;
/**
* Class ObjectId
* @link https://php.net/manual/en/class.mongodb-bson-objectid.php
*/
-final class ObjectId implements Type, ObjectIdInterface, \Serializable, JsonSerializable
+final class ObjectId implements Type, ObjectIdInterface, JsonSerializable, Stringable
{
/**
* Construct a new ObjectId
* @link https://php.net/manual/en/mongodb-bson-objectid.construct.php
@@ -24,9 +25,9 @@
* @link https://php.net/manual/en/mongodb-bson-objectid.tostring.php
*/
final public function __toString(): string {}
- public static function __set_state(array $properties) {}
+ public static function __set_state(array $properties): self {}
/**
* Returns the timestamp component of this ObjectId
* @since 1.2.0
@@ -40,20 +41,6 @@
* @since 1.2.0
* @link https://secure.php.net/manual/en/mongodb-bson-objectid.jsonserialize.php
* @return mixed data which can be serialized by json_encode()
*/
- final public function jsonSerialize() {}
-
- /**
- * Serialize an ObjectId
- * @since 1.2.0
- * @link https://secure.php.net/manual/en/mongodb-bson-objectid.serialize.php
- */
- final public function serialize(): string {}
-
- /**
- * Unserialize an ObjectId
- * @since 1.2.0
- * @link https://secure.php.net/manual/en/mongodb-bson-objectid.unserialize.php
- */
- final public function unserialize(string $data): void {}
+ final public function jsonSerialize(): mixed {}
}