Skip to content

Commit

Permalink
regenerated
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharhamel committed Sep 6, 2019
1 parent 51d47ad commit 12ae116
Show file tree
Hide file tree
Showing 22 changed files with 56 additions and 56 deletions.
6 changes: 3 additions & 3 deletions generated/apc.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function apc_compile_file(string $filename, bool $atomic = true)
*
* @param string $key The key of the value being decreased.
* @param int $step The step, or value to decrease.
* @param bool $success Optionally pass the success or fail boolean value to
* @param bool|null $success Optionally pass the success or fail boolean value to
* this referenced variable.
* @return int Returns the current value of key's value on success
* @throws ApcException
Expand Down Expand Up @@ -164,7 +164,7 @@ function apc_delete_file($keys)
* @throws ApcException
*
*/
function apc_delete(string $key)
function apc_delete($key)
{
error_clear_last();
$result = \apc_delete($key);
Expand All @@ -180,7 +180,7 @@ function apc_delete(string $key)
*
* @param string $key The key of the value being increased.
* @param int $step The step, or value to increase.
* @param bool $success Optionally pass the success or fail boolean value to
* @param bool|null $success Optionally pass the success or fail boolean value to
* this referenced variable.
* @return int Returns the current value of key's value on success
* @throws ApcException
Expand Down
4 changes: 2 additions & 2 deletions generated/apcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function apcu_cas(string $key, int $old, int $new): void
*
* @param string $key The key of the value being decreased.
* @param int $step The step, or value to decrease.
* @param bool $success Optionally pass the success or fail boolean value to
* @param bool|null $success Optionally pass the success or fail boolean value to
* this referenced variable.
* @return int Returns the current value of key's value on success
* @throws ApcuException
Expand Down Expand Up @@ -94,7 +94,7 @@ function apcu_delete($key): void
*
* @param string $key The key of the value being increased.
* @param int $step The step, or value to increase.
* @param bool $success Optionally pass the success or fail boolean value to
* @param bool|null $success Optionally pass the success or fail boolean value to
* this referenced variable.
* @return int Returns the current value of key's value on success
* @throws ApcuException
Expand Down
2 changes: 1 addition & 1 deletion generated/com.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @throws ComException
*
*/
function com_event_sink(variant $comobject, object $sinkobject, $sinkinterface = null): void
function com_event_sink(object $comobject, object $sinkobject, $sinkinterface = null): void
{
error_clear_last();
if ($sinkinterface !== null) {
Expand Down
2 changes: 1 addition & 1 deletion generated/filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ function filesize(string $filename): int
* It is also possible to add LOCK_NB as a bitmask to one
* of the above operations if you don't want flock to
* block while locking.
* @param int $wouldblock The optional third argument is set to 1 if the lock would block
* @param int|null $wouldblock The optional third argument is set to 1 if the lock would block
* (EWOULDBLOCK errno condition).
* @throws FilesystemException
*
Expand Down
2 changes: 1 addition & 1 deletion generated/gmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function gmp_binomial($n, int $k): \GMP
* @throws GmpException
*
*/
function gmp_export(\GMP $gmpnumber, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string
function gmp_export($gmpnumber, int $word_size = 1, int $options = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string
{
error_clear_last();
$result = \gmp_export($gmpnumber, $word_size, $options);
Expand Down
2 changes: 1 addition & 1 deletion generated/hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function hash_hkdf(string $algo, string $ikm, int $length = 0, string $info = ''
* @throws HashException
*
*/
function hash_update_file(\HashContext $hcontext, string $filename, $scontext = null): void
function hash_update_file(\HashContext $hcontext, string $filename, ?\HashContext $scontext = null): void
{
error_clear_last();
$result = \hash_update_file($hcontext, $filename, $scontext);
Expand Down
2 changes: 1 addition & 1 deletion generated/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function imageaffinematrixconcat(array $m1, array $m2): array
* @throws ImageException
*
*/
function imageaffinematrixget(int $type, $options = null): array
function imageaffinematrixget(int $type, array $options = null): array
{
error_clear_last();
if ($options !== null) {
Expand Down
4 changes: 2 additions & 2 deletions generated/imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function imap_gc($imap_stream, int $caches): void
* @throws ImapException
*
*/
function imap_headerinfo($imap_stream, int $msg_number, int $fromlength = 0, int $subjectlength = 0, ?string $defaulthost = null): object
function imap_headerinfo($imap_stream, int $msg_number, int $fromlength = 0, int $subjectlength = 0, string $defaulthost = null): object
{
error_clear_last();
$result = \imap_headerinfo($imap_stream, $msg_number, $fromlength, $subjectlength, $defaulthost);
Expand Down Expand Up @@ -835,7 +835,7 @@ function imap_num_msg($imap_stream): int
* @throws ImapException
*
*/
function imap_open(string $mailbox, string $username, string $password, int $options = 0, int $n_retries = 0, array $params = null)
function imap_open(string $mailbox, string $username, string $password, int $options = 0, int $n_retries = 0, ?array $params = null)
{
error_clear_last();
$result = \imap_open($mailbox, $username, $password, $options, $n_retries, $params);
Expand Down
4 changes: 2 additions & 2 deletions generated/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function getmyuid(): int
*
* @param string $options
* @param array $longopts
* @param int $optind
* @param int|null $optind
* @return array|array|array This function will return an array of option / argument pairs.
* @throws InfoException
*
Expand Down Expand Up @@ -322,7 +322,7 @@ function ini_get(string $varname): string
* @throws InfoException
*
*/
function ini_set(string $varname, string $newvalue): string
function ini_set(string $varname, $newvalue): string
{
error_clear_last();
$result = \ini_set($varname, $newvalue);
Expand Down
10 changes: 5 additions & 5 deletions generated/ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function ldap_add($link_identifier, string $dn, array $entry, array $serverctrls
* @throws LdapException
*
*/
function ldap_bind_ext($link_identifier, ?string $bind_rdn = null, ?string $bind_password = null, array $serverctrls = null)
function ldap_bind_ext($link_identifier, string $bind_rdn = null, string $bind_password = null, array $serverctrls = null)
{
error_clear_last();
$result = \ldap_bind_ext($link_identifier, $bind_rdn, $bind_password, $serverctrls);
Expand All @@ -87,7 +87,7 @@ function ldap_bind_ext($link_identifier, ?string $bind_rdn = null, ?string $bind
* @throws LdapException
*
*/
function ldap_bind($link_identifier, ?string $bind_rdn = null, ?string $bind_password = null, array $serverctrls = null): void
function ldap_bind($link_identifier, string $bind_rdn = null, string $bind_password = null, array $serverctrls = null): void
{
error_clear_last();
$result = \ldap_bind($link_identifier, $bind_rdn, $bind_password, $serverctrls);
Expand All @@ -102,8 +102,8 @@ function ldap_bind($link_identifier, ?string $bind_rdn = null, ?string $bind_pas
*
* @param resource $link An LDAP link identifier, returned by ldap_connect.
* @param resource $result
* @param string $cookie An opaque structure sent by the server.
* @param int $estimated The estimated number of entries to retrieve.
* @param string|null $cookie An opaque structure sent by the server.
* @param int|null $estimated The estimated number of entries to retrieve.
* @throws LdapException
*
*/
Expand Down Expand Up @@ -264,7 +264,7 @@ function ldap_exop_whoami($link): string
* @throws LdapException
*
*/
function ldap_exop($link, string $reqoid, string $reqdata = null, ?array $serverctrls = null, string &$retdata = null, string &$retoid = null)
function ldap_exop($link, string $reqoid, string $reqdata = null, array $serverctrls = null, string &$retdata = null, string &$retoid = null)
{
error_clear_last();
$result = \ldap_exop($link, $reqoid, $reqdata, $serverctrls, $retdata, $retoid);
Expand Down
4 changes: 2 additions & 2 deletions generated/mbstring.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function mb_ord(string $str, string $encoding = null): int
* global variables.
*
* @param string $encoded_string The URL encoded data.
* @param array $result An array containing decoded and character encoded converted values.
* @param array|null $result An array containing decoded and character encoded converted values.
* @throws MbstringException
*
*/
Expand Down Expand Up @@ -464,7 +464,7 @@ function mb_regex_encoding(string $encoding = null)
* @throws MbstringException
*
*/
function mb_send_mail(string $to, string $subject, string $message, $additional_headers = null, string $additional_parameter = null): void
function mb_send_mail(string $to, string $subject, string $message, string $additional_headers = null, string $additional_parameter = null): void
{
error_clear_last();
$result = \mb_send_mail($to, $subject, $message, $additional_headers, $additional_parameter);
Expand Down
8 changes: 4 additions & 4 deletions generated/network.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ function closelog(): void
* between platforms, DNS_ANY will not
* always return every record, the slower DNS_ALL
* will collect all records more reliably.
* @param array $authns Passed by reference and, if given, will be populated with Resource
* @param array|null $authns Passed by reference and, if given, will be populated with Resource
* Records for the Authoritative Name Servers.
* @param array $addtl Passed by reference and, if given, will be populated with any
* @param array|null $addtl Passed by reference and, if given, will be populated with any
* Additional Records.
* @param bool $raw The type will be interpreted as a raw DNS type ID
* (the DNS_* constants cannot be used).
Expand Down Expand Up @@ -278,15 +278,15 @@ function dns_get_record(string $hostname, int $type = DNS_ANY, ?array &$authns =
* @param int $port The port number. This can be omitted and skipped with
* -1 for transports that do not use ports, such as
* unix://.
* @param int $errno If provided, holds the system level error number that occurred in the
* @param int|null $errno If provided, holds the system level error number that occurred in the
* system-level connect() call.
*
* If the value returned in errno is
* 0 and the function returned FALSE, it is an
* indication that the error occurred before the
* connect() call. This is most likely due to a
* problem initializing the socket.
* @param string $errstr The error message as a string.
* @param string|null $errstr The error message as a string.
* @param float $timeout The connection timeout, in seconds.
*
* If you need to set a timeout for reading/writing data over the
Expand Down
2 changes: 1 addition & 1 deletion generated/oci8.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ function oci_execute($statement, int $mode = OCI_COMMIT_ON_SUCCESS): void
* identifier created by oci_parse and executed
* by oci_execute, or a REF
* CURSOR statement identifier.
* @param array $output The variable to contain the returned rows.
* @param array|null $output The variable to contain the returned rows.
*
* LOB columns are returned as strings, where Oracle supports
* conversion.
Expand Down
28 changes: 14 additions & 14 deletions generated/openssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function openssl_csr_export_to_file($csr, string $outfilename, bool $notext = tr
* reference.
*
* @param string|resource $csr See CSR parameters for a list of valid values.
* @param string $out on success, this string will contain the PEM encoded CSR
* @param string|null $out on success, this string will contain the PEM encoded CSR
* @param bool $notext
* The optional parameter notext affects
* the verbosity of the output; if it is FALSE, then additional human-readable
Expand Down Expand Up @@ -351,7 +351,7 @@ function openssl_digest(string $data, string $method, bool $raw_output = false):
* openssl_seal for more information.
*
* @param string $sealed_data
* @param string $open_data If the call is successful the opened data is returned in this
* @param string|null $open_data If the call is successful the opened data is returned in this
* parameter.
* @param string $env_key
* @param string|array|resource $priv_key_id
Expand Down Expand Up @@ -453,7 +453,7 @@ function openssl_pkcs12_export_to_file($x509, string $filename, $priv_key, strin
* out in a PKCS#12 file format.
*
* @param string|resource $x509 See Key/Certificate parameters for a list of valid values.
* @param string $out On success, this will hold the PKCS#12.
* @param string|null $out On success, this will hold the PKCS#12.
* @param string|array|resource $priv_key Private key component of PKCS#12 file.
* See Public/Private Key parameters for a list of valid values.
* @param string $pass Encryption password for unlocking the PKCS#12 file.
Expand Down Expand Up @@ -501,7 +501,7 @@ function openssl_pkcs12_export($x509, ?string &$out, $priv_key, string $pass, ar
* certs.
*
* @param string $pkcs12 The certificate store contents, not its file name.
* @param array $certs On success, this will hold the Certificate Store Data.
* @param array|null $certs On success, this will hold the Certificate Store Data.
* @param string $pass Encryption password for unlocking the PKCS#12 file.
* @throws OpensslException
*
Expand Down Expand Up @@ -670,7 +670,7 @@ function openssl_pkey_export_to_file($key, string $outfilename, string $passphra
* out (which is passed by reference).
*
* @param resource $key
* @param string $out
* @param string|null $out
* @param string $passphrase The key is optionally protected by passphrase.
* @param array $configargs configargs can be used to fine-tune the export
* process by specifying and/or overriding options for the openssl
Expand Down Expand Up @@ -714,7 +714,7 @@ function openssl_pkey_export($key, ?string &$out, string $passphrase = null, arr
* @throws OpensslException
*
*/
function openssl_pkey_get_private($key, string $passphrase = "")
function openssl_pkey_get_private(string $key, string $passphrase = "")
{
error_clear_last();
$result = \openssl_pkey_get_private($key, $passphrase);
Expand Down Expand Up @@ -792,7 +792,7 @@ function openssl_pkey_new(array $configargs = null)
* You can use this function e.g. to decrypt data which is supposed to only be available to you.
*
* @param string $data
* @param string $decrypted
* @param string|null $decrypted
* @param string|resource|array $key key must be the private key corresponding that
* was used to encrypt the data.
* @param int $padding padding can be one of
Expand Down Expand Up @@ -823,7 +823,7 @@ function openssl_private_decrypt(string $data, ?string &$decrypted, $key, int $p
* is not written by someone else.
*
* @param string $data
* @param string $crypted
* @param string|null $crypted
* @param string|resource|array $key
* @param int $padding padding can be one of
* OPENSSL_PKCS1_PADDING,
Expand Down Expand Up @@ -851,7 +851,7 @@ function openssl_private_encrypt(string $data, ?string &$crypted, $key, int $pad
* owner of the private key.
*
* @param string $data
* @param string $decrypted
* @param string|null $decrypted
* @param string|resource $key key must be the public key corresponding that
* was used to encrypt the data.
* @param int $padding padding can be one of
Expand Down Expand Up @@ -881,7 +881,7 @@ function openssl_public_decrypt(string $data, ?string &$decrypted, $key, int $pa
* in database.
*
* @param string $data
* @param string $crypted This will hold the result of the encryption.
* @param string|null $crypted This will hold the result of the encryption.
* @param string|resource $key The public key.
* @param int $padding padding can be one of
* OPENSSL_PKCS1_PADDING,
Expand Down Expand Up @@ -911,7 +911,7 @@ function openssl_public_encrypt(string $data, ?string &$crypted, $key, int $padd
*
* @param int $length The length of the desired string of bytes. Must be a positive integer. PHP will
* try to cast this parameter to a non-null integer to use it.
* @param bool $crypto_strong If passed into the function, this will hold a boolean value that determines
* @param bool|null $crypto_strong If passed into the function, this will hold a boolean value that determines
* if the algorithm used was "cryptographically strong", e.g., safe for usage with GPG,
* passwords, etc. TRUE if it did, otherwise FALSE
* @return string Returns the generated string of bytes on success.
Expand Down Expand Up @@ -941,7 +941,7 @@ function openssl_random_pseudo_bytes(int $length, ?bool &$crypto_strong = null):
* the envelope key that was encrypted with the recipient's public key.
*
* @param string $data The data to seal.
* @param string $sealed_data The sealed data.
* @param string|null $sealed_data The sealed data.
* @param array $env_keys Array of encrypted keys.
* @param array $pub_key_ids Array of public key resource identifiers.
* @param string $method The cipher method.
Expand Down Expand Up @@ -972,7 +972,7 @@ function openssl_seal(string $data, ?string &$sealed_data, array &$env_keys, arr
* not encrypted.
*
* @param string $data The string of data you wish to sign
* @param string $signature If the call was successful the signature is returned in
* @param string|null $signature If the call was successful the signature is returned in
* signature.
* @param resource|string $priv_key_id resource - a key, returned by openssl_get_privatekey
*
Expand Down Expand Up @@ -1024,7 +1024,7 @@ function openssl_x509_export_to_file($x509, string $outfilename, bool $notext =
* output in a PEM encoded format.
*
* @param string|resource $x509 See Key/Certificate parameters for a list of valid values.
* @param string $output On success, this will hold the PEM.
* @param string|null $output On success, this will hold the PEM.
* @param bool $notext
* The optional parameter notext affects
* the verbosity of the output; if it is FALSE, then additional human-readable
Expand Down
2 changes: 1 addition & 1 deletion generated/pcntl.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function pcntl_signal_dispatch(): void
* blocked signals by the given list of signals.
*
* @param array $set List of signals.
* @param array $oldset The oldset parameter is set to an array
* @param array|null $oldset The oldset parameter is set to an array
* containing the list of the previously blocked signals.
* @throws PcntlException
*
Expand Down
6 changes: 3 additions & 3 deletions generated/sem.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function msg_queue_exists(int $key): void
* message arrives on the queue. You can prevent the script from blocking
* by specifying MSG_IPC_NOWAIT in the
* flags parameter.
* @param int $msgtype The type of the message that was received will be stored in this
* @param int|null $msgtype The type of the message that was received will be stored in this
* parameter.
* @param int $maxsize The maximum size of message to be accepted is specified by the
* maxsize; if the message in the queue is larger
Expand Down Expand Up @@ -87,7 +87,7 @@ function msg_queue_exists(int $key): void
*
*
*
* @param int $errorcode If the function fails, the optional errorcode
* @param int|null $errorcode If the function fails, the optional errorcode
* will be set to the value of the system errno variable.
* @throws SemException
*
Expand Down Expand Up @@ -151,7 +151,7 @@ function msg_remove_queue($queue): void
* errorcode to MSG_EAGAIN,
* indicating that you should try to send your message again a little
* later on.
* @param int $errorcode If the function fails, the optional errorcode will be set to the value of the system errno variable.
* @param int|null $errorcode If the function fails, the optional errorcode will be set to the value of the system errno variable.
* @throws SemException
*
*/
Expand Down
Loading

0 comments on commit 12ae116

Please sign in to comment.