summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/hash/hash.stub.php2
-rw-r--r--ext/imap/php_imap.stub.php6
-rw-r--r--ext/ldap/ldap.stub.php6
-rw-r--r--ext/oci8/oci8.stub.php12
-rw-r--r--ext/odbc/odbc.stub.php2
-rw-r--r--ext/simplexml/simplexml.stub.php6
-rw-r--r--ext/snmp/snmp.stub.php2
-rwxr-xr-xext/spl/spl_directory.stub.php8
-rw-r--r--ext/sqlite3/sqlite3.stub.php4
-rwxr-xr-xext/standard/basic_functions.stub.php8
-rw-r--r--ext/xml/xml.stub.php2
-rw-r--r--ext/xmlwriter/php_xmlwriter.stub.php4
-rw-r--r--ext/zip/php_zip.stub.php2
13 files changed, 32 insertions, 32 deletions
diff --git a/ext/hash/hash.stub.php b/ext/hash/hash.stub.php
index d2e9d1aee1..a8f90cd5ec 100644
--- a/ext/hash/hash.stub.php
+++ b/ext/hash/hash.stub.php
@@ -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_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
function mhash_get_block_size(int $hash): int|false {}
diff --git a/ext/imap/php_imap.stub.php b/ext/imap/php_imap.stub.php
index d707af161c..9d2e1082c1 100644
--- a/ext/imap/php_imap.stub.php
+++ b/ext/imap/php_imap.stub.php
@@ -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_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 {}
@@ -66,7 +66,7 @@ function imap_fetchmime($stream_id, int $msg_no, string $section, int $options =
* @param resource $stream_id
* @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 */
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 {}
/** @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 {}
diff --git a/ext/ldap/ldap.stub.php b/ext/ldap/ldap.stub.php
index e46d140545..372458fe78 100644
--- a/ext/ldap/ldap.stub.php
+++ b/ext/ldap/ldap.stub.php
@@ -193,7 +193,7 @@ function ldap_compare($link_identifier, string $dn, string $attribute, string $v
* @param resource $link
* @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
@@ -281,7 +281,7 @@ function ldap_set_rebind_proc($link, ?callable $callback): bool {}
function ldap_start_tls($link_identifier): bool {}
#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
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 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
diff --git a/ext/oci8/oci8.stub.php b/ext/oci8/oci8.stub.php
index 58eb984f94..419df17be0 100644
--- a/ext/oci8/oci8.stub.php
+++ b/ext/oci8/oci8.stub.php
@@ -332,38 +332,38 @@ function ocilogoff($connection_resource): ?bool {}
/**
* @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
* @alias oci_new_connect
* @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
*/
-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
* @alias oci_connect
* @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
*/
-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
* @alias oci_pconnect
* @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
diff --git a/ext/odbc/odbc.stub.php b/ext/odbc/odbc.stub.php
index cb318f7ac9..9316f1d7e4 100644
--- a/ext/odbc/odbc.stub.php
+++ b/ext/odbc/odbc.stub.php
@@ -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 {}
/** @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 */
function odbc_free_result($result_id): bool {}
diff --git a/ext/simplexml/simplexml.stub.php b/ext/simplexml/simplexml.stub.php
index d068cb2d71..7d56de88e9 100644
--- a/ext/simplexml/simplexml.stub.php
+++ b/ext/simplexml/simplexml.stub.php
@@ -2,9 +2,9 @@
/** @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 {}
@@ -37,7 +37,7 @@ class SimpleXMLElement implements Stringable, Countable, RecursiveIterator
/** @return SimpleXMLIterator */
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 */
public function addChild(string $qualifiedName, ?string $value = null, ?string $namespace = null) {}
diff --git a/ext/snmp/snmp.stub.php b/ext/snmp/snmp.stub.php
index e7592ee67b..28cdd5f4f7 100644
--- a/ext/snmp/snmp.stub.php
+++ b/ext/snmp/snmp.stub.php
@@ -60,7 +60,7 @@ class SNMP
public function close() {}
/** @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 */
public function get(array|string $object_id, bool $use_orignames = false) {}
diff --git a/ext/spl/spl_directory.stub.php b/ext/spl/spl_directory.stub.php
index 0e942a2e12..92c9f8813a 100755
--- a/ext/spl/spl_directory.stub.php
+++ b/ext/spl/spl_directory.stub.php
@@ -82,7 +82,7 @@ class SplFileInfo
* @param resource|null $context
* @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 */
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
{
/** @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 */
public function rewind() {}
@@ -206,10 +206,10 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
public function fread(int $length) {}
/** @return array|false */
- public function fgetcsv(string $delimiter = ",", string $enclosure = '"', string $escape = "\\") {}
+ public function fgetcsv(string $delimiter = ",", string $enclosure = "\"", string $escape = "\\") {}
/** @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 */
public function setCsvControl(string $delimiter = ",", string $enclosure = "\"", string $escape = "\\") {}
diff --git a/ext/sqlite3/sqlite3.stub.php b/ext/sqlite3/sqlite3.stub.php
index d2435051e1..132bd44cbb 100644
--- a/ext/sqlite3/sqlite3.stub.php
+++ b/ext/sqlite3/sqlite3.stub.php
@@ -5,10 +5,10 @@
class SQLite3
{
/** @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 */
- 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 */
public function close() {}
diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php
index d0df30c056..7304223bfb 100755
--- a/ext/standard/basic_functions.stub.php
+++ b/ext/standard/basic_functions.stub.php
@@ -502,9 +502,9 @@ function header(string $string, bool $replace = true, int $http_response_code =
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 {}
@@ -660,7 +660,7 @@ function setlocale(int $category, $locales, ...$rest): string|false {}
/** @param array $result */
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 {}
@@ -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 {}
/** @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 {}
diff --git a/ext/xml/xml.stub.php b/ext/xml/xml.stub.php
index 5f90d91fe4..b5af233761 100644
--- a/ext/xml/xml.stub.php
+++ b/ext/xml/xml.stub.php
@@ -4,7 +4,7 @@
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 {}
diff --git a/ext/xmlwriter/php_xmlwriter.stub.php b/ext/xmlwriter/php_xmlwriter.stub.php
index 5b3b4f512b..fd12e5bdbe 100644
--- a/ext/xmlwriter/php_xmlwriter.stub.php
+++ b/ext/xmlwriter/php_xmlwriter.stub.php
@@ -52,7 +52,7 @@ function xmlwriter_text(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 {}
@@ -164,7 +164,7 @@ class XMLWriter
public function writeRaw(string $content): bool {}
/** @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 */
public function endDocument(): bool {}
diff --git a/ext/zip/php_zip.stub.php b/ext/zip/php_zip.stub.php
index 6b81a623b0..7da7bfea39 100644
--- a/ext/zip/php_zip.stub.php
+++ b/ext/zip/php_zip.stub.php
@@ -26,7 +26,7 @@ function zip_read($zip) {}
* @param resource $zip_entry
* @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