summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_closures.stub.php8
-rw-r--r--Zend/zend_exceptions.stub.php38
-rw-r--r--Zend/zend_generators.stub.php16
-rw-r--r--Zend/zend_interfaces.stub.php28
-rw-r--r--ext/ffi/ffi.stub.php34
-rw-r--r--ext/fileinfo/fileinfo.stub.php8
-rw-r--r--ext/session/session.stub.php18
-rw-r--r--ext/snmp/snmp.stub.php18
-rw-r--r--ext/soap/soap.stub.php56
-rw-r--r--ext/sqlite3/sqlite3.stub.php80
-rw-r--r--ext/xmlreader/xmlreader.stub.php50
-rw-r--r--ext/xmlwriter/xmlwriter.stub.php84
12 files changed, 219 insertions, 219 deletions
diff --git a/Zend/zend_closures.stub.php b/Zend/zend_closures.stub.php
index 0dc92789a0..65ad4635da 100644
--- a/Zend/zend_closures.stub.php
+++ b/Zend/zend_closures.stub.php
@@ -5,17 +5,17 @@ Class Closure
private function __construct() {}
/** @return ?Closure */
- static function bind(Closure $closure, ?object $newthis, $newscope = UNKNOWN) {}
+ public static function bind(Closure $closure, ?object $newthis, $newscope = UNKNOWN) {}
/** @return ?Closure */
- function bindTo(?object $newthis, $newscope = UNKNOWN) {}
+ public function bindTo(?object $newthis, $newscope = UNKNOWN) {}
/** @return mixed */
- function call(object $newthis, ...$parameters) {}
+ public function call(object $newthis, ...$parameters) {}
/**
* @param callable $callable Not a proper type annotation due to bug #78770
* @return Closure
*/
- function fromCallable($callable) {}
+ public function fromCallable($callable) {}
}
diff --git a/Zend/zend_exceptions.stub.php b/Zend/zend_exceptions.stub.php
index cf631f3c2b..83e3a3ba45 100644
--- a/Zend/zend_exceptions.stub.php
+++ b/Zend/zend_exceptions.stub.php
@@ -3,63 +3,63 @@
interface Throwable extends Stringable
{
/** @return string */
- function getMessage();
+ public function getMessage();
/** @return int */
- function getCode();
+ public function getCode();
/** @return string */
- function getFile();
+ public function getFile();
/** @return int */
- function getLine();
+ public function getLine();
/** @return array */
- function getTrace();
+ public function getTrace();
/** @return ?Throwable */
- function getPrevious();
+ public function getPrevious();
/** @return string */
- function getTraceAsString();
+ public function getTraceAsString();
}
class Exception implements Throwable
{
final private function __clone() {}
- function __construct(string $message = UNKNOWN, int $code = 0, ?Throwable $previous = null) {}
+ public function __construct(string $message = UNKNOWN, int $code = 0, ?Throwable $previous = null) {}
- function __wakeup() {}
+ public function __wakeup() {}
/** @return string */
- final function getMessage() {}
+ final public function getMessage() {}
/** @return int */
- final function getCode() {}
+ final public function getCode() {}
/** @return string */
- final function getFile() {}
+ final public function getFile() {}
/** @return int */
- final function getLine() {}
+ final public function getLine() {}
/** @return array */
- final function getTrace() {}
+ final public function getTrace() {}
/** @return ?Throwable */
- final function getPrevious() {}
+ final public function getPrevious() {}
/** @return string */
- final function getTraceAsString() {}
+ final public function getTraceAsString() {}
- function __toString(): string {}
+ public function __toString(): string {}
}
class ErrorException extends Exception
{
- function __construct(string $message = UNKNOWN, int $code = 0, int $severity = E_ERROR, string $filename = UNKNOWN, int $lineno = 0, ?Throwable $previous = null) {}
+ public function __construct(string $message = UNKNOWN, int $code = 0, int $severity = E_ERROR, string $filename = UNKNOWN, int $lineno = 0, ?Throwable $previous = null) {}
/** @return int */
- final function getSeverity() {}
+ final public function getSeverity() {}
}
diff --git a/Zend/zend_generators.stub.php b/Zend/zend_generators.stub.php
index 3599cc0e69..7f45f726b5 100644
--- a/Zend/zend_generators.stub.php
+++ b/Zend/zend_generators.stub.php
@@ -2,24 +2,24 @@
final class Generator implements Iterator
{
- function rewind(): void {}
+ public function rewind(): void {}
- function valid(): bool {}
+ public function valid(): bool {}
/** @return mixed */
- function current() {}
+ public function current() {}
/** @return mixed */
- function key() {}
+ public function key() {}
- function next(): void {}
+ public function next(): void {}
/** @return mixed */
- function send($value) {}
+ public function send($value) {}
/** @return mixed */
- function throw(Throwable $exception) {}
+ public function throw(Throwable $exception) {}
/** @return mixed */
- function getReturn() {}
+ public function getReturn() {}
}
diff --git a/Zend/zend_interfaces.stub.php b/Zend/zend_interfaces.stub.php
index b78257f53f..1deb28a384 100644
--- a/Zend/zend_interfaces.stub.php
+++ b/Zend/zend_interfaces.stub.php
@@ -5,59 +5,59 @@ interface Traversable {}
interface IteratorAggregate extends Traversable
{
/** @return Traversable */
- function getIterator();
+ public function getIterator();
}
interface Iterator extends Traversable
{
/** @return mixed */
- function current();
+ public function current();
/** @return void */
- function next();
+ public function next();
/** @return mixed */
- function key();
+ public function key();
/** @return bool */
- function valid();
+ public function valid();
/** @return void */
- function rewind();
+ public function rewind();
}
interface ArrayAccess
{
/** @return bool */
- function offsetExists($offset);
+ public function offsetExists($offset);
/* actually this should be return by ref but atm cannot be */
/** @return mixed */
- function offsetGet($offset);
+ public function offsetGet($offset);
/** @return void */
- function offsetSet($offset, $value);
+ public function offsetSet($offset, $value);
/** @return void */
- function offsetUnset($offset);
+ public function offsetUnset($offset);
}
interface Serializable
{
/** @return string */
- function serialize();
+ public function serialize();
/** @return void */
- function unserialize(string $serialized);
+ public function unserialize(string $serialized);
}
interface Countable
{
/** @return int */
- function count();
+ public function count();
}
interface Stringable
{
- function __toString(): string;
+ public function __toString(): string;
}
diff --git a/ext/ffi/ffi.stub.php b/ext/ffi/ffi.stub.php
index 5819443f06..384a89ad08 100644
--- a/ext/ffi/ffi.stub.php
+++ b/ext/ffi/ffi.stub.php
@@ -2,46 +2,46 @@
final class FFI
{
- static function cdef(string $code = UNKNOWN, string $lib = UNKNOWN): ?FFI {}
+ public static function cdef(string $code = UNKNOWN, string $lib = UNKNOWN): ?FFI {}
- static function load(string $filename): ?FFI {}
+ public static function load(string $filename): ?FFI {}
- static function scope(string $scope_name): ?FFI {}
+ public static function scope(string $scope_name): ?FFI {}
/** @param FFI\CType|string $type */
- static function new($type, bool $owned = true, bool $persistent = false): ?FFI\CData {}
+ public static function new($type, bool $owned = true, bool $persistent = false): ?FFI\CData {}
/** @prefer-ref $ptr */
- static function free(FFI\CData $ptr): void {}
+ public static function free(FFI\CData $ptr): void {}
/**
* @param FFI\CType|string $type
* @prefer-ref $ptr
*/
- static function cast($type, $ptr): ?FFI\CData {}
+ public static function cast($type, $ptr): ?FFI\CData {}
- static function type(string $type): ?FFI\CType {}
+ public static function type(string $type): ?FFI\CType {}
/** @prefer-ref $ptr */
- static function typeof(FFI\CData $ptr): ?FFI\CType {}
+ public static function typeof(FFI\CData $ptr): ?FFI\CType {}
- static function arrayType(FFI\CType $type, array $dims): ?FFI\CType {}
+ public static function arrayType(FFI\CType $type, array $dims): ?FFI\CType {}
/** @prefer-ref $ptr */
- static function addr(FFI\CData $ptr): FFI\CData {}
+ public static function addr(FFI\CData $ptr): FFI\CData {}
/** @prefer-ref $ptr */
- static function sizeof(object $ptr): ?int {}
+ public static function sizeof(object $ptr): ?int {}
/** @prefer-ref $ptr */
- static function alignof(object $ptr): ?int {}
+ public static function alignof(object $ptr): ?int {}
/**
* @prefer-ref $dst
* @prefer-ref $src
* @param string|FFI\CData $dst
*/
- static function memcpy(FFI\CData $dst, $src, int $size): void {}
+ public static function memcpy(FFI\CData $dst, $src, int $size): void {}
/**
* @prefer-ref $ptr1
@@ -49,14 +49,14 @@ final class FFI
* @prefer-ref $ptr2
* @param string|FFI\CData $ptr2
*/
- static function memcmp($ptr1, $ptr2, int $size): ?int {}
+ public static function memcmp($ptr1, $ptr2, int $size): ?int {}
/** @prefer-ref $ptr */
- static function memset(FFI\CData $ptr, int $ch, int $size): void {}
+ public static function memset(FFI\CData $ptr, int $ch, int $size): void {}
/** @prefer-ref $ptr */
- static function string(FFI\CData $ptr, int $size = UNKNOWN): ?string {}
+ public static function string(FFI\CData $ptr, int $size = UNKNOWN): ?string {}
/** @prefer-ref $ptr */
- static function isNull(FFI\CData $ptr): bool {}
+ public static function isNull(FFI\CData $ptr): bool {}
}
diff --git a/ext/fileinfo/fileinfo.stub.php b/ext/fileinfo/fileinfo.stub.php
index 6835a4930f..a5ecb8872f 100644
--- a/ext/fileinfo/fileinfo.stub.php
+++ b/ext/fileinfo/fileinfo.stub.php
@@ -4,22 +4,22 @@
class finfo
{
- function __construct(int $options = FILEINFO_NONE, string $arg = "") {}
+ public function __construct(int $options = FILEINFO_NONE, string $arg = "") {}
/**
* @param ?resource $context
* @return string|false
*/
- function file(string $file_name, int $options = FILEINFO_NONE, $context = null) {}
+ public function file(string $file_name, int $options = FILEINFO_NONE, $context = null) {}
/**
* @param ?resource $context
* @return string|false
*/
- function buffer(string $string, int $options = FILEINFO_NONE, $context = null) {}
+ public function buffer(string $string, int $options = FILEINFO_NONE, $context = null) {}
/** @return bool */
- function set_flags(int $options) {}
+ public function set_flags(int $options) {}
}
/** @return resource|false */
diff --git a/ext/session/session.stub.php b/ext/session/session.stub.php
index 1363b2aef4..8c3a648025 100644
--- a/ext/session/session.stub.php
+++ b/ext/session/session.stub.php
@@ -50,35 +50,35 @@ function session_start(array $options = []): bool {}
interface SessionHandlerInterface
{
/** @return bool */
- function open(string $save_path, string $session_name);
+ public function open(string $save_path, string $session_name);
/** @return bool */
- function close();
+ public function close();
/** @return string */
- function read(string $key);
+ public function read(string $key);
/** @return bool */
- function write(string $key, string $val);
+ public function write(string $key, string $val);
/** @return bool */
- function destroy(string $key);
+ public function destroy(string $key);
/** @return int|bool */
- function gc(int $maxlifetime);
+ public function gc(int $maxlifetime);
}
interface SessionIdInterface
{
/** @return string */
- function create_sid();
+ public function create_sid();
}
interface SessionUpdateTimestampHandlerInterface
{
/** @return bool */
- function validateId(string $key);
+ public function validateId(string $key);
/** @return bool */
- function updateTimestamp(string $key, string $val);
+ public function updateTimestamp(string $key, string $val);
}
diff --git a/ext/snmp/snmp.stub.php b/ext/snmp/snmp.stub.php
index 11e8516a94..bee2b39318 100644
--- a/ext/snmp/snmp.stub.php
+++ b/ext/snmp/snmp.stub.php
@@ -82,31 +82,31 @@ function snmp_read_mib(string $filename): bool {}
class SNMP
{
- function __construct(int $version, string $host, string $community, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
+ public function __construct(int $version, string $host, string $community, int $timeout = UNKNOWN, int $retries = UNKNOWN) {}
/** @return bool */
- function close() {}
+ public function close() {}
/** @return bool */
- 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 = '') {}
/**
* @param array|string $object_id
* @return array|bool
*/
- function get($object_id, bool $use_orignames = false) {}
+ public function get($object_id, bool $use_orignames = false) {}
/**
* @param array|string $object_id
* @return array|bool
*/
- function getnext($object_id) {}
+ public function getnext($object_id) {}
/**
* @param array|string $object_id
* @return array|bool
*/
- function walk($object_id, bool $suffix_keys = false, int $max_repetitions = UNKNOWN, int $non_repeaters = UNKNOWN) {}
+ public function walk($object_id, bool $suffix_keys = false, int $max_repetitions = UNKNOWN, int $non_repeaters = UNKNOWN) {}
/**
* @param array|string $object_id
@@ -114,11 +114,11 @@ class SNMP
* @param array|string $value
* @return array|bool
*/
- function set($object_id, $type, $value) {}
+ public function set($object_id, $type, $value) {}
/** @return int */
- function getErrno() {}
+ public function getErrno() {}
/** @return string */
- function getError() {}
+ public function getError() {}
}
diff --git a/ext/soap/soap.stub.php b/ext/soap/soap.stub.php
index 77070dccf7..19553b7732 100644
--- a/ext/soap/soap.stub.php
+++ b/ext/soap/soap.stub.php
@@ -6,95 +6,95 @@ function is_soap_fault($object): bool {}
class SoapParam
{
- function __construct($data, string $name);
+ public function __construct($data, string $name);
}
class SoapHeader
{
- function __construct(string $namespace, string $name, $data = UNKNOWN, bool $mustunderstand = false, $actor = UNKNOWN);
+ public function __construct(string $namespace, string $name, $data = UNKNOWN, bool $mustunderstand = false, $actor = UNKNOWN);
}
class SoapFault extends Exception
{
- function __construct($faultcode, string $faultstring, ?string $faultactor = null, $detail = null, ?string $faultname = null, $headerfault = null);
+ public function __construct($faultcode, string $faultstring, ?string $faultactor = null, $detail = null, ?string $faultname = null, $headerfault = null);
- function __toString(): string;
+ public function __toString(): string;
}
class SoapVar
{
- function __construct($data, $encoding, string $type_name = "", string $type_namespace = "", string $node_name = "", string $node_namespace = "");
+ public function __construct($data, $encoding, string $type_name = "", string $type_namespace = "", string $node_name = "", string $node_namespace = "");
}
class SoapServer
{
- function __construct($wsdl, array $options = []);
+ public function __construct($wsdl, array $options = []);
/** @return void */
- function fault(string $code, string $string, string $actor = "", $details = null, string $name = "");
+ public function fault(string $code, string $string, string $actor = "", $details = null, string $name = "");
/** @return void */
- function addSoapHeader(SoapHeader $object);
+ public function addSoapHeader(SoapHeader $object);
/** @return void */
- function setPersistence(int $mode);
+ public function setPersistence(int $mode);
/** @return void */
- function setClass(string $class_name, ...$argv);
+ public function setClass(string $class_name, ...$argv);
/** @return void */
- function setObject(object $object);
+ public function setObject(object $object);
/** @return array */
- function getFunctions();
+ public function getFunctions();
/** @return void */
- function addFunction($functions);
+ public function addFunction($functions);
/** @return void */
- function handle(string $soap_request = UNKNOWN);
+ public function handle(string $soap_request = UNKNOWN);
}
class SoapClient
{
- function __construct($wsdl, array $options = []);
+ public function __construct($wsdl, array $options = []);
/** @return mixed */
- function __call(string $function_name, array $arguments);
+ public function __call(string $function_name, array $arguments);
/** @return mixed */
- function __soapCall(string $function_name, array $arguments, ?array $options = null, $input_headers = null, $output_headers = null);
+ public function __soapCall(string $function_name, array $arguments, ?array $options = null, $input_headers = null, $output_headers = null);
/** @return array|null */
- function __getFunctions();
+ public function __getFunctions();
/** @return array|null */
- function __getTypes();
+ public function __getTypes();
/** @return ?string */
- function __getLastRequest();
+ public function __getLastRequest();
/** @return ?string */
- function __getLastResponse();
+ public function __getLastResponse();
/** @return ?string */
- function __getLastRequestHeaders();
+ public function __getLastRequestHeaders();
/** @return ?string */
- function __getLastResponseHeaders();
+ public function __getLastResponseHeaders();
/** @return ?string */
- function __doRequest(string $request, string $location, string $action, int $version, int $one_way = 0);
+ public function __doRequest(string $request, string $location, string $action, int $version, int $one_way = 0);
/** @return void */
- function __setCookie(string $name, ?string $value = null);
+ public function __setCookie(string $name, ?string $value = null);
/** @return array */
- function __getCookies();
+ public function __getCookies();
/** @return bool */
- function __setSoapHeaders($soapheaders = null);
+ public function __setSoapHeaders($soapheaders = null);
/** @return ?string */
- function __setLocation(string $new_location = "");
+ public function __setLocation(string $new_location = "");
}
diff --git a/ext/sqlite3/sqlite3.stub.php b/ext/sqlite3/sqlite3.stub.php
index 8f3bc4f2dd..18478d85b3 100644
--- a/ext/sqlite3/sqlite3.stub.php
+++ b/ext/sqlite3/sqlite3.stub.php
@@ -2,130 +2,130 @@
class SQLite3
{
- 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 */
- 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 */
- function close() {}
+ public function close() {}
/** @return array */
- function version() {}
+ public function version() {}
/** @return int */
- function lastInsertRowID() {}
+ public function lastInsertRowID() {}
/** @return int */
- function lastErrorCode() {}
+ public function lastErrorCode() {}
/** @return int */
- function lastExtendedErrorCode() {}
+ public function lastExtendedErrorCode() {}
/** @return string */
- function lastErrorMsg() {}
+ public function lastErrorMsg() {}
/** @return int */
- function changes() {}
+ public function changes() {}
/** @return bool */
- function busyTimeout(int $ms) {}
+ public function busyTimeout(int $ms) {}
#ifndef SQLITE_OMIT_LOAD_EXTENSION
/** @return bool */
- function loadExtension(string $shared_library) {}
+ public function loadExtension(string $shared_library) {}
#endif
#if SQLITE_VERSION_NUMBER >= 3006011
/** @return bool */
- function backup(SQLite3 $destination_db, string $source_dbname = "main", string $destination_dbname = "main") {}
+ public function backup(SQLite3 $destination_db, string $source_dbname = "main", string $destination_dbname = "main") {}
#endif
/** @return string */
- function escapeString(string $value) {}
+ public function escapeString(string $value) {}
/** @return SQLite3Stmt|false */
- function prepare(string $query) {}
+ public function prepare(string $query) {}
/** @return SQLite3Result|false|null */
- function query(string $query) {}
+ public function query(string $query) {}
/** @return mixed */
- function querySingle(string $query, bool $entire_row = false) {}
+ public function querySingle(string $query, bool $entire_row = false) {}
/** @return bool */
- function createFunction(string $name, $callback, int $argument_count = -1, int $flags = 0) {}
+ public function createFunction(string $name, $callback, int $argument_count = -1, int $flags = 0) {}
/** @return bool */
- function createAggregate(string $name, $step_callback, $final_callback, int $argument_count = -1) {}
+ public function createAggregate(string $name, $step_callback, $final_callback, int $argument_count = -1) {}
/** @return bool */
- function createCollation(string $name, $callback) {}
+ public function createCollation(string $name, $callback) {}
/** @return resource|false */
- function openBlob(string $table, string $column, int $rowid, string $dbname = "main", int $flags = SQLITE3_OPEN_READONLY) {}
+ public function openBlob(string $table, string $column, int $rowid, string $dbname = "main", int $flags = SQLITE3_OPEN_READONLY) {}
/** @return bool */
- function enableExceptions(bool $enableExceptions = false) {}
+ public function enableExceptions(bool $enableExceptions = false) {}
/** @return bool */
- function enableExtendedResultCodes(bool $enable = true) {}
+ public function enableExtendedResultCodes(bool $enable = true) {}
/** @return bool */
- function setAuthorizer(?callable $callback) {}
+ public function setAuthorizer(?callable $callback) {}
}
class SQLite3Stmt
{
- function __construct(SQLite3 $sqlite3, string $sql) {}
+ public function __construct(SQLite3 $sqlite3, string $sql) {}
/** @return bool */
- function bindParam($param_number, &$param, int $type = UNKNOWN) {}
+ public function bindParam($param_number, &$param, int $type = UNKNOWN) {}
/** @return bool */
- function bindValue($param_number, $param, int $type = UNKNOWN) {}
+ public function bindValue($param_number, $param, int $type = UNKNOWN) {}
/** @return bool */
- function clear() {}
+ public function clear() {}
/** @return bool */
- function close() {}
+ public function close() {}
/** @return SQLite3Result|false */
- function execute() {}
+ public function execute() {}
/** @return string|false */
- function getSQL(bool $expanded = false) {}
+ public function getSQL(bool $expanded = false) {}
/** @return int */
- function paramCount() {}
+ public function paramCount() {}
/** @return bool */
- function readOnly() {}
+ public function readOnly() {}
/** @return bool */
- function reset() {}
+ public function reset() {}
}
class SQLite3Result
{
- function __construct() {}
+ public function __construct() {}
/** @return int */
- function numColumns() {}
+ public function numColumns() {}
/** @return string|false */
- function columnName(int $column_number) {}
+ public function columnName(int $column_number) {}
/** @return int|false */
- function columnType(int $column_number) {}
+ public function columnType(int $column_number) {}
/** @return array|false */
- function fetchArray(int $mode = SQLITE3_BOTH) {}
+ public function fetchArray(int $mode = SQLITE3_BOTH) {}
/** @return bool */
- function reset() {}
+ public function reset() {}
/** @return bool */
- function finalize() {}
+ public function finalize() {}
}
diff --git a/ext/xmlreader/xmlreader.stub.php b/ext/xmlreader/xmlreader.stub.php
index 6608e60768..5a8a108a9d 100644
--- a/ext/xmlreader/xmlreader.stub.php
+++ b/ext/xmlreader/xmlreader.stub.php
@@ -3,77 +3,77 @@
class XMLReader
{
/** @return bool */
- function close() {}
+ public function close() {}
/** @return string|null|false */
- function getAttribute(string $name) {}
+ public function getAttribute(string $name) {}
/** @return ?string */
- function getAttributeNo(int $index) {}
+ public function getAttributeNo(int $index) {}
/** @return string|null|false */
- function getAttributeNs(string $name, string $namespaceURI) {}
+ public function getAttributeNs(string $name, string $namespaceURI) {}
/** @return bool */
- function getParserProperty(int $property) {}
+ public function getParserProperty(int $property) {}
/** @return bool */
- function isValid() {}
+ public function isValid() {}
/** @return string|null|false */
- function lookupNamespace(string $prefix) {}
+ public function lookupNamespace(string $prefix) {}
/** @return bool */
- function moveToAttribute(string $name) {}
+ public function moveToAttribute(string $name) {}
/** @return bool */
- function moveToAttributeNo(int $index) {}
+ public function moveToAttributeNo(int $index) {}
/** @return bool */
- function moveToAttributeNs(string $name, string $namespaceURI) {}
+ public function moveToAttributeNs(string $name, string $namespaceURI) {}
/** @return bool */
- function moveToElement() {}
+ public function moveToElement() {}
/** @return bool */
- function moveToFirstAttribute() {}
+ public function moveToFirstAttribute() {}
/** @return bool */
- function moveToNextAttribute() {}
+ public function moveToNextAttribute() {}
/** @return bool */
- function read() {}
+ public function read() {}
/** @return bool */
- function next(string $localname = UNKNOWN) {}
+ public function next(string $localname = UNKNOWN) {}
/** @return bool|XMLReader */
- function open(string $URI, ?string $encoding = null, int $options = 0) {}
+ public function open(string $URI, ?string $encoding = null, int $options = 0) {}
/** @return string */
- function readInnerXml() {}
+ public function readInnerXml() {}
/** @return string */
- function readOuterXml() {}
+ public function readOuterXml() {}
/** @return string */
- function readString() {}
+ public function readString() {}
/** @return bool */
- function setSchema(?string $filename) {}
+ public function setSchema(?string $filename) {}
/** @return bool */
- function setParserProperty(int $property, bool $value) {}
+ public function setParserProperty(int $property, bool $value) {}
/** @return bool */
- function setRelaxNGSchema(?string $filename) {}
+ public function setRelaxNGSchema(?string $filename) {}
/** @return bool */
- function setRelaxNGSchemaSource(?string $source) {}
+ public function setRelaxNGSchemaSource(?string $source) {}
/** @return bool|XMLReader */
- function XML(string $source, ?string $encoding = null, int $options = 0) {}
+ public function XML(string $source, ?string $encoding = null, int $options = 0) {}
/** @return DOMNode|bool */
- function expand(?DOMNode $basenode = null) {}
+ public function expand(?DOMNode $basenode = null) {}
}
diff --git a/ext/xmlwriter/xmlwriter.stub.php b/ext/xmlwriter/xmlwriter.stub.php
index 35a0dec658..7dc6bc47bd 100644
--- a/ext/xmlwriter/xmlwriter.stub.php
+++ b/ext/xmlwriter/xmlwriter.stub.php
@@ -86,87 +86,87 @@ function xmlwriter_flush(XMLWriter $xmlwriter, bool $empty = true): string|int {
class XMLWriter
{
- function openUri(string $uri): bool {}
+ public function openUri(string $uri): bool {}
- function openMemory(): bool {}
+ public function openMemory(): bool {}
- function setIndent(bool $indent): bool {}
+ public function setIndent(bool $indent): bool {}
- function setIdentString(string $indentString): bool {}
+ public function setIdentString(string $indentString): bool {}
- function startComment(): bool {}
+ public function startComment(): bool {}
- function endComment(): bool {}
+ public function endComment(): bool {}
- function startAttribute(string $name): bool {}
+ public function startAttribute(string $name): bool {}
- function endAttribute(): bool {}
+ public function endAttribute(): bool {}
- function writeAttribute(string $name, string $value): bool {}
+ public function writeAttribute(string $name, string $value): bool {}
- function startAttributeNs(string $prefix, string $name, ?string $uri): bool {}
+ public function startAttributeNs(string $prefix, string $name, ?string $uri): bool {}
- function writeAttributeNs(string $prefix, string $name, ?string $uri, string $content): bool {}
+ public function writeAttributeNs(string $prefix, string $name, ?string $uri, string $content): bool {}
- function startElement(string $name): bool {}
+ public function startElement(string $name): bool {}
- function endElement(): bool {}
+ public function endElement(): bool {}
- function fullEndElement(): bool {}
+ public function fullEndElement(): bool {}
- function startElementNs(?string $prefix, string $name, ?string $uri): bool {}
+ public function startElementNs(?string $prefix, string $name, ?string $uri): bool {}
- function writeElement(string $name, ?string $content = null): bool {}
+ public function writeElement(string $name, ?string $content = null): bool {}
- function writeElementNs(?string $prefix, string $name, ?string $uri, ?string $content = null): bool {}
+ public function writeElementNs(?string $prefix, string $name, ?string $uri, ?string $content = null): bool {}
- function startPi(string $target): bool {}
+ public function startPi(string $target): bool {}
- function endPi(): bool {}
+ public function endPi(): bool {}
- function writePi(string $target, string $content): bool {}
+ public function writePi(string $target, string $content): bool {}
- function startCdata(): bool {}
+ public function startCdata(): bool {}
- function endCdata(): bool {}
+ public function endCdata(): bool {}
- function writeCdata(string $content): bool {}
+ public function writeCdata(string $content): bool {}
- function text(string $content): bool {}
+ public function text(string $content): bool {}
- function writeRaw(string $content): bool {}
+ public function writeRaw(string $content): bool {}
- 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 {}
- function endDocument(): bool {}
+ public function endDocument(): bool {}
- function writeComment(string $content): bool {}
+ public function writeComment(string $content): bool {}
- function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
+ public function startDtd(string $qualifiedName, ?string $publicId = null, ?string $systemId = null): bool {}
- function endDtd(): bool {}
+ public function endDtd(): bool {}
- function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $subset = null): bool {}
+ public function writeDtd(string $name, ?string $publicId = null, ?string $systemId = null, ?string $subset = null): bool {}
- function startDtdElement(string $qualifiedName): bool {}
+ public function startDtdElement(string $qualifiedName): bool {}
- function endDtdElement(): bool {}
+ public function endDtdElement(): bool {}
- function writeDtdElement(string $name, string $content): bool {}
+ public function writeDtdElement(string $name, string $content): bool {}
- function startDtdAttlist(string $name): bool {}
+ public function startDtdAttlist(string $name): bool {}
- function endDtdAttlist(): bool {}
+ public function endDtdAttlist(): bool {}
- function writeDtdAttlist(string $name, string $content): bool {}
+ public function writeDtdAttlist(string $name, string $content): bool {}
- function startDtdEntity(string $name, bool $isparam): bool {}
+ public function startDtdEntity(string $name, bool $isparam): bool {}
- function endDtdEntity(): bool {}
+ public function endDtdEntity(): bool {}
- function writeDtdEntity(string $name, string $content, bool $isparam, string $publicId = UNKNOWN, string $systemId = UNKNOWN, string $ndataid = UNKNOWN): bool {}
+ public function writeDtdEntity(string $name, string $content, bool $isparam, string $publicId = UNKNOWN, string $systemId = UNKNOWN, string $ndataid = UNKNOWN): bool {}
- function outputMemory(bool $flush = true): string {}
+ public function outputMemory(bool $flush = true): string {}
- function flush(bool $empty = true): string|int {}
+ public function flush(bool $empty = true): string|int {}
}