update typehints for mongodb
This commit is contained in:
parent
bcf30cbad9
commit
9703f8569a
|
@ -800,20 +800,20 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
|
|||
#[LanguageLevelTypeAware(['8.0' => 'mixed'], default: '')] &...$vars
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Write to file
|
||||
* @link https://php.net/manual/en/splfileobject.fwrite.php
|
||||
* @param string $data <p>
|
||||
* The string to be written to the file.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
* If the <i>length</i> argument is given, writing will
|
||||
* stop after <i>length</i> bytes have been written or
|
||||
* the end of <i>string</i> is reached, whichever comes
|
||||
* first.
|
||||
* </p>
|
||||
* @return int|false the number of bytes written, or 0 (false since 7.4) on error.
|
||||
*/
|
||||
/**
|
||||
* Write to file
|
||||
* @link https://php.net/manual/en/splfileobject.fwrite.php
|
||||
* @param string $data <p>
|
||||
* The string to be written to the file.
|
||||
* </p>
|
||||
* @param int $length [optional] <p>
|
||||
* If the <i>length</i> argument is given, writing will
|
||||
* stop after <i>length</i> bytes have been written or
|
||||
* the end of <i>string</i> is reached, whichever comes
|
||||
* first.
|
||||
* </p>
|
||||
* @return int|false the number of bytes written, or 0 (false since 7.4) on error.
|
||||
*/
|
||||
#[LanguageLevelTypeAware(['7.4' => 'int|false'], default: 'int')]
|
||||
public function fwrite(
|
||||
#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $data,
|
||||
|
|
|
@ -6,11 +6,11 @@ final class ServerApi implements \MongoDB\BSON\Serializable, \Serializable
|
|||
{
|
||||
public const V1 = 1;
|
||||
|
||||
final public function __construct($version, $strict = false, $deprecationErrors = false) {}
|
||||
final public function __construct(string $version, ?bool $strict = false, ?bool $deprecationErrors = false) {}
|
||||
|
||||
public static function __set_state($properties) {}
|
||||
public static function __set_state(array $properties) {}
|
||||
|
||||
final public function unserialize($serialized) {}
|
||||
final public function unserialize(string $serialized) {}
|
||||
|
||||
final public function serialize() {}
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ namespace MongoDB\Driver {
|
|||
use MongoDB\Driver\Exception\UnexpectedValueException;
|
||||
use MongoDB\Driver\Exception\WriteConcernException;
|
||||
use MongoDB\Driver\Exception\WriteException;
|
||||
use MongoDB\Driver\Monitoring\Subscriber;
|
||||
use Traversable;
|
||||
|
||||
/**
|
||||
|
@ -210,9 +211,9 @@ namespace MongoDB\Driver {
|
|||
*/
|
||||
final public function startSession(?array $options = []) {}
|
||||
|
||||
final public function addSubscriber($subscriber) {}
|
||||
final public function addSubscriber(Subscriber $subscriber) {}
|
||||
|
||||
final public function removeSubscriber($subscriber) {}
|
||||
final public function removeSubscriber(Subscriber $subscriber) {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -808,7 +809,7 @@ namespace MongoDB\Driver {
|
|||
|
||||
final public function __wakeup() {}
|
||||
|
||||
public static function __set_state($properties) {}
|
||||
public static function __set_state(array $properties) {}
|
||||
|
||||
/**
|
||||
* Serialize a CursorId
|
||||
|
@ -2859,6 +2860,6 @@ namespace MongoDB\BSON {
|
|||
}
|
||||
|
||||
namespace {
|
||||
define('MONGODB_VERSION', '1.9.1');
|
||||
define('MONGODB_VERSION', '1.10.0');
|
||||
define('MONGODB_STABILITY', 'stable');
|
||||
}
|
||||
|
|
|
@ -798,7 +798,8 @@ function openssl_open(
|
|||
string $data,
|
||||
&$output,
|
||||
string $encrypted_key,
|
||||
#[LanguageLevelTypeAware(['8.0' => 'OpenSSLAsymmetricKey|OpenSSLCertificate|array|string'], default: 'resource|array|string')] $private_key, #[Required(from: '8.0')] string $cipher_algo = "RC4",
|
||||
#[LanguageLevelTypeAware(['8.0' => 'OpenSSLAsymmetricKey|OpenSSLCertificate|array|string'], default: 'resource|array|string')] $private_key,
|
||||
#[Required(from: '8.0')] string $cipher_algo = "RC4",
|
||||
?string $iv
|
||||
): bool {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue