Display string default values in stubs more uniformly

Settling on using quoted string
This commit is contained in:
Máté Kocsis 2020-09-16 21:27:01 +02:00
parent c76910cd96
commit de912821e0
No known key found for this signature in database
GPG Key ID: FD055E41728BF310
13 changed files with 32 additions and 32 deletions

View File

@ -32,7 +32,7 @@ function hash_pbkdf2(string $algo, string $password, string $salt, int $iteratio
function hash_equals(string $known_string, string $user_string): bool {} function hash_equals(string $known_string, string $user_string): bool {}
function hash_hkdf(string $algo, string $ikm, int $length = 0, string $info = '', string $salt = ''): string {} function hash_hkdf(string $algo, string $ikm, int $length = 0, string $info = "", string $salt = ""): string {}
#ifdef PHP_MHASH_BC #ifdef PHP_MHASH_BC
function mhash_get_block_size(int $hash): int|false {} function mhash_get_block_size(int $hash): int|false {}

View File

@ -35,7 +35,7 @@ function imap_headerinfo($stream_id, int $msg_no, int $from_length = 0, int $sub
*/ */
function imap_header($stream_id, int $msg_no, int $from_length = 0, int $subject_length = 0, string $default_host = UNKNOWN): stdClass|false {} function imap_header($stream_id, int $msg_no, int $from_length = 0, int $subject_length = 0, string $default_host = UNKNOWN): stdClass|false {}
function imap_rfc822_parse_headers(string $headers, string $default_host = 'UNKNOWN'): stdClass {} function imap_rfc822_parse_headers(string $headers, string $default_host = "UNKNOWN"): stdClass {}
function imap_rfc822_write_address(string $mailbox, string $host, string $personal): string|false {} function imap_rfc822_write_address(string $mailbox, string $host, string $personal): string|false {}
@ -66,7 +66,7 @@ function imap_fetchmime($stream_id, int $msg_no, string $section, int $options =
* @param resource $stream_id * @param resource $stream_id
* @param resource|string|int $file * @param resource|string|int $file
*/ */
function imap_savebody($stream_id, $file, int $msg_no, string $section = '', int $options = 0): bool {} function imap_savebody($stream_id, $file, int $msg_no, string $section = "", int $options = 0): bool {}
/** @param resource $stream_id */ /** @param resource $stream_id */
function imap_fetchheader($stream_id, int $msg_no, int $options = 0): string|false {} function imap_fetchheader($stream_id, int $msg_no, int $options = 0): string|false {}
@ -222,7 +222,7 @@ function imap_errors(): array|false {}
function imap_last_error(): string|false {} function imap_last_error(): string|false {}
/** @param resource $stream_id */ /** @param resource $stream_id */
function imap_search($stream_id, string $criteria, int $options = SE_FREE, string $charset = ''): array|false {} function imap_search($stream_id, string $criteria, int $options = SE_FREE, string $charset = ""): array|false {}
function imap_utf7_decode(string $buf): string|false {} function imap_utf7_decode(string $buf): string|false {}

View File

@ -193,7 +193,7 @@ function ldap_compare($link_identifier, string $dn, string $attribute, string $v
* @param resource $link * @param resource $link
* @deprecated since 7.4 * @deprecated since 7.4
*/ */
function ldap_control_paged_result($link, int $pagesize, bool $iscritical = false, string $cookie = ''): bool {} function ldap_control_paged_result($link, int $pagesize, bool $iscritical = false, string $cookie = ""): bool {}
/** /**
* @param resource $link * @param resource $link
@ -281,7 +281,7 @@ function ldap_set_rebind_proc($link, ?callable $callback): bool {}
function ldap_start_tls($link_identifier): bool {} function ldap_start_tls($link_identifier): bool {}
#endif #endif
function ldap_escape(string $value, string $ignore = '', int $flags = 0): string {} function ldap_escape(string $value, string $ignore = "", int $flags = 0): string {}
#ifdef STR_TRANSLATION #ifdef STR_TRANSLATION
function ldap_t61_to_8859(string $value): string|false {} function ldap_t61_to_8859(string $value): string|false {}
@ -305,7 +305,7 @@ function ldap_exop($link, string $reqoid, ?string $reqdata = null, ?array $serve
* @param resource $link * @param resource $link
* @param array $serverctrls * @param array $serverctrls
*/ */
function ldap_exop_passwd($link, string $user = '', string $oldpw = '', string $newpw = '', &$serverctrls = null): string|bool {} function ldap_exop_passwd($link, string $user = "", string $oldpw = "", string $newpw = "", &$serverctrls = null): string|bool {}
#endif #endif

View File

@ -332,38 +332,38 @@ function ocilogoff($connection_resource): ?bool {}
/** /**
* @return resource|false * @return resource|false
*/ */
function oci_new_connect(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {} function oci_new_connect(string $username, string $password, ?string $connection_string = null, string $character_set = "", int $session_mode = OCI_DEFAULT) {}
/** /**
* @return resource|false * @return resource|false
* @alias oci_new_connect * @alias oci_new_connect
* @deprecated * @deprecated
*/ */
function ocinlogon(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {} function ocinlogon(string $username, string $password, ?string $connection_string = null, string $character_set = "", int $session_mode = OCI_DEFAULT) {}
/** /**
* @return resource|false * @return resource|false
*/ */
function oci_connect(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {} function oci_connect(string $username, string $password, ?string $connection_string = null, string $character_set = "", int $session_mode = OCI_DEFAULT) {}
/** /**
* @return resource|false * @return resource|false
* @alias oci_connect * @alias oci_connect
* @deprecated * @deprecated
*/ */
function ocilogon(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {} function ocilogon(string $username, string $password, ?string $connection_string = null, string $character_set = "", int $session_mode = OCI_DEFAULT) {}
/** /**
* @return resource|false * @return resource|false
*/ */
function oci_pconnect(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {} function oci_pconnect(string $username, string $password, ?string $connection_string = null, string $character_set = "", int $session_mode = OCI_DEFAULT) {}
/** /**
* @return resource|false * @return resource|false
* @alias oci_pconnect * @alias oci_pconnect
* @deprecated * @deprecated
*/ */
function ociplogon(string $username, string $password, ?string $connection_string = null, string $character_set = '', int $session_mode = OCI_DEFAULT) {} function ociplogon(string $username, string $password, ?string $connection_string = null, string $character_set = "", int $session_mode = OCI_DEFAULT) {}
/** /**
* @param resource|null $connection_or_statement_resource * @param resource|null $connection_or_statement_resource

View File

@ -61,7 +61,7 @@ function odbc_fetch_row($result_id, int $row_number = UNKNOWN): bool {}
function odbc_result($result_id, string|int $field): string|bool|null {} function odbc_result($result_id, string|int $field): string|bool|null {}
/** @param resource $result_id */ /** @param resource $result_id */
function odbc_result_all($result_id, string $format = ''): int|false {} function odbc_result_all($result_id, string $format = ""): int|false {}
/** @param resource $result_id */ /** @param resource $result_id */
function odbc_free_result($result_id): bool {} function odbc_free_result($result_id): bool {}

View File

@ -2,9 +2,9 @@
/** @generate-function-entries */ /** @generate-function-entries */
function simplexml_load_file(string $filename, ?string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = '', bool $is_prefix = false): SimpleXMLElement|false {} function simplexml_load_file(string $filename, ?string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {}
function simplexml_load_string(string $data, ?string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = '', bool $is_prefix = false): SimpleXMLElement|false {} function simplexml_load_string(string $data, ?string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {}
function simplexml_import_dom(DOMNode $node, ?string $class_name = SimpleXMLElement::class): ?SimpleXMLElement {} function simplexml_import_dom(DOMNode $node, ?string $class_name = SimpleXMLElement::class): ?SimpleXMLElement {}
@ -37,7 +37,7 @@ class SimpleXMLElement implements Stringable, Countable, RecursiveIterator
/** @return SimpleXMLIterator */ /** @return SimpleXMLIterator */
public function attributes(?string $namespaceOrPrefix = null, bool $isPrefix = false) {} public function attributes(?string $namespaceOrPrefix = null, bool $isPrefix = false) {}
public function __construct(string $data, int $options = 0, bool $dataIsURL = false, string $namespaceOrPrefix = '', bool $isPrefix = false) {} public function __construct(string $data, int $options = 0, bool $dataIsURL = false, string $namespaceOrPrefix = "", bool $isPrefix = false) {}
/** @return SimpleXMLElement */ /** @return SimpleXMLElement */
public function addChild(string $qualifiedName, ?string $value = null, ?string $namespace = null) {} public function addChild(string $qualifiedName, ?string $value = null, ?string $namespace = null) {}

View File

@ -60,7 +60,7 @@ class SNMP
public function close() {} public function close() {}
/** @return bool */ /** @return bool */
public function setSecurity(string $sec_level, string $auth_protocol = '', string $auth_passphrase = '', string $priv_protocol = '', string $priv_passphrase = '', string $contextName = '', string $contextEngineID = '') {} public function setSecurity(string $sec_level, string $auth_protocol = "", string $auth_passphrase = "", string $priv_protocol = "", string $priv_passphrase = "", string $contextName = "", string $contextEngineID = "") {}
/** @return array|bool */ /** @return array|bool */
public function get(array|string $object_id, bool $use_orignames = false) {} public function get(array|string $object_id, bool $use_orignames = false) {}

View File

@ -82,7 +82,7 @@ class SplFileInfo
* @param resource|null $context * @param resource|null $context
* @return SplFileObject * @return SplFileObject
*/ */
public function openFile(string $open_mode = 'r', bool $use_include_path = false, $context = null) {} public function openFile(string $open_mode = "r", bool $use_include_path = false, $context = null) {}
/** @return void */ /** @return void */
public function setFileClass(string $class_name = SplFileObject::class) {} public function setFileClass(string $class_name = SplFileObject::class) {}
@ -188,7 +188,7 @@ class GlobIterator extends FilesystemIterator implements Countable
class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIterator class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIterator
{ {
/** @param resource|null $context */ /** @param resource|null $context */
public function __construct(string $file_name, string $open_mode = 'r', bool $use_include_path = false, $context = null) {} public function __construct(string $file_name, string $open_mode = "r", bool $use_include_path = false, $context = null) {}
/** @return void */ /** @return void */
public function rewind() {} public function rewind() {}
@ -206,10 +206,10 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
public function fread(int $length) {} public function fread(int $length) {}
/** @return array|false */ /** @return array|false */
public function fgetcsv(string $delimiter = ",", string $enclosure = '"', string $escape = "\\") {} public function fgetcsv(string $delimiter = ",", string $enclosure = "\"", string $escape = "\\") {}
/** @return int|false */ /** @return int|false */
public function fputcsv(array $fields, string $delimiter = ',', string $enclosure = '"', string $escape = "\\") {} public function fputcsv(array $fields, string $delimiter = ",", string $enclosure = "\"", string $escape = "\\") {}
/** @return bool|null */ /** @return bool|null */
public function setCsvControl(string $delimiter = ",", string $enclosure = "\"", string $escape = "\\") {} public function setCsvControl(string $delimiter = ",", string $enclosure = "\"", string $escape = "\\") {}

View File

@ -5,10 +5,10 @@
class SQLite3 class SQLite3
{ {
/** @alias SQLite3::open */ /** @alias SQLite3::open */
public function __construct(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryption_key = '') {} public function __construct(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryption_key = "") {}
/** @return void */ /** @return void */
public function open(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryption_key = '') {} public function open(string $filename, int $flags = SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, string $encryption_key = "") {}
/** @return bool */ /** @return bool */
public function close() {} public function close() {}

View File

@ -502,9 +502,9 @@ function header(string $string, bool $replace = true, int $http_response_code =
function header_remove(?string $name = null): void {} function header_remove(?string $name = null): void {}
function setrawcookie(string $name, string $value = '', array|int $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {} function setrawcookie(string $name, string $value = "", array|int $expires_or_options = 0, string $path = "", string $domain = "", bool $secure = false, bool $httponly = false): bool {}
function setcookie(string $name, string $value = '', array|int $expires_or_options = 0, string $path = '', string $domain = '', bool $secure = false, bool $httponly = false): bool {} function setcookie(string $name, string $value = "", array|int $expires_or_options = 0, string $path = "", string $domain = "", bool $secure = false, bool $httponly = false): bool {}
function http_response_code(int $response_code = 0): int|bool {} function http_response_code(int $response_code = 0): int|bool {}
@ -660,7 +660,7 @@ function setlocale(int $category, $locales, ...$rest): string|false {}
/** @param array $result */ /** @param array $result */
function parse_str(string $encoded_string, &$result): void {} function parse_str(string $encoded_string, &$result): void {}
function str_getcsv(string $string, string $delimiter = ',', string $enclosure = '"', string $escape = '\\'): array {} function str_getcsv(string $string, string $delimiter = ",", string $enclosure = "\"", string $escape = '\\'): array {}
function str_repeat(string $input, int $mult): string {} function str_repeat(string $input, int $mult): string {}
@ -865,7 +865,7 @@ function file_put_contents(string $filename, mixed $content, int $flags = 0, $co
function fputcsv($handle, array $fields, string $delimiter = ",", string $enclosure = "\"", string $escape = "\\"): int|false {} function fputcsv($handle, array $fields, string $delimiter = ",", string $enclosure = "\"", string $escape = "\\"): int|false {}
/** @param resource $handle */ /** @param resource $handle */
function fgetcsv($handle, ?int $length = null, string $delimiter = ",", string $enclosure = '"', string $escape = "\\"): array|false {} function fgetcsv($handle, ?int $length = null, string $delimiter = ",", string $enclosure = "\"", string $escape = "\\"): array|false {}
function realpath(string $path): string|false {} function realpath(string $path): string|false {}

View File

@ -4,7 +4,7 @@
function xml_parser_create(?string $encoding = null): XmlParser {} function xml_parser_create(?string $encoding = null): XmlParser {}
function xml_parser_create_ns(?string $encoding = null, string $sep = ':'): XmlParser {} function xml_parser_create_ns(?string $encoding = null, string $sep = ":"): XmlParser {}
function xml_set_object(XmlParser $parser, object $obj): bool {} function xml_set_object(XmlParser $parser, object $obj): bool {}

View File

@ -52,7 +52,7 @@ function xmlwriter_text(XMLWriter $xmlwriter, string $content): bool {}
function xmlwriter_write_raw(XMLWriter $xmlwriter, string $content): bool {} function xmlwriter_write_raw(XMLWriter $xmlwriter, string $content): bool {}
function xmlwriter_start_document(XMLWriter $xmlwriter, ?string $version = '1.0', ?string $encoding = null, ?string $standalone = null): bool {} function xmlwriter_start_document(XMLWriter $xmlwriter, ?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {}
function xmlwriter_end_document(XMLWriter $xmlwriter): bool {} function xmlwriter_end_document(XMLWriter $xmlwriter): bool {}
@ -164,7 +164,7 @@ class XMLWriter
public function writeRaw(string $content): bool {} public function writeRaw(string $content): bool {}
/** @alias xmlwriter_start_document */ /** @alias xmlwriter_start_document */
public function startDocument(?string $version = '1.0', ?string $encoding = null, ?string $standalone = null): bool {} public function startDocument(?string $version = "1.0", ?string $encoding = null, ?string $standalone = null): bool {}
/** @alias xmlwriter_end_document */ /** @alias xmlwriter_end_document */
public function endDocument(): bool {} public function endDocument(): bool {}

View File

@ -26,7 +26,7 @@ function zip_read($zip) {}
* @param resource $zip_entry * @param resource $zip_entry
* @deprecated * @deprecated
*/ */
function zip_entry_open($zip_dp, $zip_entry, string $mode = 'rb'): bool {} function zip_entry_open($zip_dp, $zip_entry, string $mode = "rb"): bool {}
/** /**
* @param resource $zip_ent * @param resource $zip_ent