summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-04-11 10:23:51 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-04-11 10:23:51 +0200
commitca006e54e30bc5ac96f35af1ed7fd73a8c422cf0 (patch)
treed12144e326fa4aaab3212ea3218378f39c4ea9b0 /Zend
parent1d05771a70a64b897d4af832654202fdfd40de86 (diff)
downloadphp-git-ca006e54e30bc5ac96f35af1ed7fd73a8c422cf0.tar.gz
Add missing visibility modifiers in stubs
Diffstat (limited to 'Zend')
-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
4 files changed, 45 insertions, 45 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;
}