]> granicus.if.org Git - php/commitdiff
Add missing visibility modifiers in stubs
authorMáté Kocsis <kocsismate@woohoolabs.com>
Sat, 11 Apr 2020 08:23:51 +0000 (10:23 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Sat, 11 Apr 2020 08:23:51 +0000 (10:23 +0200)
12 files changed:
Zend/zend_closures.stub.php
Zend/zend_exceptions.stub.php
Zend/zend_generators.stub.php
Zend/zend_interfaces.stub.php
ext/ffi/ffi.stub.php
ext/fileinfo/fileinfo.stub.php
ext/session/session.stub.php
ext/snmp/snmp.stub.php
ext/soap/soap.stub.php
ext/sqlite3/sqlite3.stub.php
ext/xmlreader/xmlreader.stub.php
ext/xmlwriter/xmlwriter.stub.php

index 0dc92789a00248458c4a1554e7ea83dc40d4fcb8..65ad4635dae8ae2c4795590d0d48292e11dd139e 100644 (file)
@@ -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) {}
 }
index cf631f3c2b00a5d116305f66d27ebcbb78d91353..83e3a3ba451910a0e3f1eae6765cf9c7d1c256a9 100644 (file)
@@ -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() {}
 }
index 3599cc0e69c2bb4ff4b87d6cceb696ee2ea11889..7f45f726b5e407f1121b21236d6785a85f570593 100644 (file)
@@ -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() {}
 }
index b78257f53f0c66c0979863834cf235c5c500fbf8..1deb28a3843764b385f43a22d5d642c1a3bf1582 100644 (file)
@@ -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;
 }
index 5819443f06b56c755982a25739d029a8c9001e96..384a89ad08197a2e5e22de185fbeb9d66f80be3a 100644 (file)
@@ -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 {}
 }
index 6835a4930f92e9137dc0b0a2d794a5d5d0dbd9d5..a5ecb8872fb9e0d239fe63854282a19a5806b3e0 100644 (file)
@@ -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 */
index 1363b2aef402700e748ad81d2deb444a688672e3..8c3a6480259cbd2a4e2ed8efbe8232da8fd68847 100644 (file)
@@ -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);
 }
index 11e8516a944d32f96ce2f71ecbfa717d9c3e76ef..bee2b393182fc85f69eaf3e0efd82dab3fd30155 100644 (file)
@@ -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() {}
 }
index 77070dccf75cb10cefa5650fc0f8d6849f80776c..19553b7732e72543b25c47cc7194dfce7b2e5fec 100644 (file)
@@ -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 = "");
 }
index 8f3bc4f2dd1b813b0268ba828bbd87fc0ee727a8..18478d85b3ce02c80ff93a4e6b68d12c7f9aab62 100644 (file)
 
 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() {}
 }
index 6608e60768e04ecfe8d6f9961d7ca2c36266a9d0..5a8a108a9d8783ef1ac7284c0549b45746d7379c 100644 (file)
@@ -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) {}
 }
index 35a0dec65885c9ccc6f4e7e281c4042d1bfaef39..7dc6bc47bd562cde488f2722c569e5f963bc9d1c 100644 (file)
@@ -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 {}
 }