2019-10-13 18:57:09 +00:00
|
|
|
<?php
|
|
|
|
|
2021-02-14 14:21:24 +00:00
|
|
|
/** @generate-class-entries */
|
2020-04-12 17:53:32 +00:00
|
|
|
|
2019-10-13 18:57:09 +00:00
|
|
|
class ReflectionException extends Exception
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
class Reflection
|
|
|
|
{
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public static function getModifierNames(int $modifiers): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
interface Reflector extends Stringable
|
2019-10-13 18:57:09 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2019-10-13 18:57:09 +00:00
|
|
|
abstract class ReflectionFunctionAbstract implements Reflector
|
|
|
|
{
|
2021-02-15 11:08:15 +00:00
|
|
|
public string $name;
|
2021-02-14 14:21:24 +00:00
|
|
|
|
2020-09-19 18:13:08 +00:00
|
|
|
/** @implementation-alias ReflectionClass::__clone */
|
2021-04-21 08:08:25 +00:00
|
|
|
private function __clone(): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function inNamespace(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isClosure(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isDeprecated(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isInternal(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isUserDefined(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isGenerator(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isVariadic(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-06-25 09:39:29 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isStatic(): bool {}
|
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getClosureThis(): ?object {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getClosureScopeClass(): ?ReflectionClass {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2022-09-02 11:53:14 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getClosureCalledClass(): ?ReflectionClass {}
|
2022-09-02 11:32:50 +00:00
|
|
|
|
2021-10-18 12:28:46 +00:00
|
|
|
public function getClosureUsedVariables(): array {}
|
2021-05-21 07:28:08 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDocComment(): string|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getEndLine(): int|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getExtension(): ?ReflectionExtension {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getExtensionName(): string|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getFileName(): string|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getNamespaceName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getNumberOfParameters(): int {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getNumberOfRequiredParameters(): int {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getParameters(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getShortName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getStartLine(): int|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getStaticVariables(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function returnsReference(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function hasReturnType(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getReturnType(): ?ReflectionType {}
|
2020-05-24 18:57:00 +00:00
|
|
|
|
2021-05-06 13:05:21 +00:00
|
|
|
public function hasTentativeReturnType(): bool {}
|
|
|
|
|
|
|
|
public function getTentativeReturnType(): ?ReflectionType {}
|
|
|
|
|
2020-05-24 18:57:00 +00:00
|
|
|
public function getAttributes(?string $name = null, int $flags = 0): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class ReflectionFunction extends ReflectionFunctionAbstract
|
|
|
|
{
|
2022-07-23 10:59:30 +00:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_DEPRECATED
|
|
|
|
*/
|
|
|
|
public const IS_DEPRECATED = UNKNOWN;
|
|
|
|
|
2020-07-24 08:46:37 +00:00
|
|
|
public function __construct(Closure|string $function) {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
public function __toString(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2022-05-05 13:51:20 +00:00
|
|
|
public function isAnonymous(): bool {}
|
|
|
|
|
Completely remove disabled functions from function table
Currently, disabling a function only replaces the internal
function handler with one that throws a warning, and a few
places in the engine special-case such functions, such as
function_exists. This leaves us with a Schrödinger's function,
which both does not exist (function_exists returns false) and
does exist (you cannot define a function with the same name).
In particular, this prevents the implementation of robust
polyfills, as reported in https://bugs.php.net/bug.php?id=79382:
if (!function_exists('getallheaders')) {
function getallheaders(...) { ... }
}
If getallheaders() is a disabled function, this code will break.
This patch changes disable_functions to remove the functions from
the function table completely. For all intents and purposes, it
will look like the function does not exist.
This also renders two bits of PHP functionality obsolete and thus
deprecated:
* ReflectionFunction::isDisabled(), as it will no longer be
possible to construct the ReflectionFunction of a disabled
function in the first place.
* get_defined_functions() with $exclude_disabled=false, as
get_defined_functions() now never returns disabled functions.
Fixed bug #79382.
Closes GH-5473.
2020-04-27 11:17:37 +00:00
|
|
|
/**
|
2021-05-18 15:05:47 +00:00
|
|
|
* @tentative-return-type
|
Completely remove disabled functions from function table
Currently, disabling a function only replaces the internal
function handler with one that throws a warning, and a few
places in the engine special-case such functions, such as
function_exists. This leaves us with a Schrödinger's function,
which both does not exist (function_exists returns false) and
does exist (you cannot define a function with the same name).
In particular, this prevents the implementation of robust
polyfills, as reported in https://bugs.php.net/bug.php?id=79382:
if (!function_exists('getallheaders')) {
function getallheaders(...) { ... }
}
If getallheaders() is a disabled function, this code will break.
This patch changes disable_functions to remove the functions from
the function table completely. For all intents and purposes, it
will look like the function does not exist.
This also renders two bits of PHP functionality obsolete and thus
deprecated:
* ReflectionFunction::isDisabled(), as it will no longer be
possible to construct the ReflectionFunction of a disabled
function in the first place.
* get_defined_functions() with $exclude_disabled=false, as
get_defined_functions() now never returns disabled functions.
Fixed bug #79382.
Closes GH-5473.
2020-04-27 11:17:37 +00:00
|
|
|
* @deprecated ReflectionFunction can no longer be constructed for disabled functions
|
|
|
|
*/
|
2021-05-18 15:05:47 +00:00
|
|
|
public function isDisabled(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function invoke(mixed ...$args): mixed {}
|
2019-11-16 17:40:06 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function invokeArgs(array $args): mixed {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getClosure(): Closure {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2020-07-21 09:53:00 +00:00
|
|
|
final class ReflectionGenerator
|
2019-10-13 18:57:09 +00:00
|
|
|
{
|
|
|
|
public function __construct(Generator $generator) {}
|
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getExecutingLine(): int {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getExecutingFile(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getFunction(): ReflectionFunctionAbstract {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getThis(): ?object {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getExecutingGenerator(): Generator {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class ReflectionMethod extends ReflectionFunctionAbstract
|
|
|
|
{
|
2022-07-23 10:59:30 +00:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_STATIC
|
|
|
|
*/
|
|
|
|
public const IS_STATIC = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_PUBLIC
|
|
|
|
*/
|
|
|
|
public const IS_PUBLIC = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_PROTECTED
|
|
|
|
*/
|
|
|
|
public const IS_PROTECTED = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_PRIVATE
|
|
|
|
*/
|
|
|
|
public const IS_PRIVATE = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_ABSTRACT
|
|
|
|
*/
|
|
|
|
public const IS_ABSTRACT = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_FINAL
|
|
|
|
*/
|
|
|
|
public const IS_FINAL = UNKNOWN;
|
|
|
|
|
2021-02-15 11:08:15 +00:00
|
|
|
public string $class;
|
2021-02-14 14:21:24 +00:00
|
|
|
|
2020-09-09 00:21:51 +00:00
|
|
|
public function __construct(object|string $objectOrMethod, ?string $method = null) {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2023-07-13 07:35:49 +00:00
|
|
|
public static function createFromMethodName(string $method): static {}
|
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
public function __toString(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isPublic(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isPrivate(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isProtected(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isAbstract(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isFinal(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isConstructor(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isDestructor(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getClosure(?object $object = null): Closure {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getModifiers(): int {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function invoke(?object $object, mixed ...$args): mixed {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function invokeArgs(?object $object, array $args): mixed {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDeclaringClass(): ReflectionClass {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getPrototype(): ReflectionMethod {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2022-05-04 11:21:37 +00:00
|
|
|
public function hasPrototype(): bool {}
|
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function setAccessible(bool $accessible): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2019-10-13 18:57:09 +00:00
|
|
|
class ReflectionClass implements Reflector
|
|
|
|
{
|
2022-07-23 10:59:30 +00:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_IMPLICIT_ABSTRACT_CLASS
|
|
|
|
* @todo deprecate
|
|
|
|
*/
|
|
|
|
public const IS_IMPLICIT_ABSTRACT = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_EXPLICIT_ABSTRACT_CLASS
|
|
|
|
*/
|
|
|
|
public const IS_EXPLICIT_ABSTRACT = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_FINAL
|
|
|
|
*/
|
|
|
|
public const IS_FINAL = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_READONLY_CLASS
|
|
|
|
*/
|
|
|
|
public const IS_READONLY = UNKNOWN;
|
|
|
|
|
2021-02-15 11:08:15 +00:00
|
|
|
public string $name;
|
2021-02-14 14:21:24 +00:00
|
|
|
|
2021-04-21 08:08:25 +00:00
|
|
|
private function __clone(): void {}
|
2019-11-16 17:40:06 +00:00
|
|
|
|
2020-09-04 12:23:43 +00:00
|
|
|
public function __construct(object|string $objectOrClass) {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
public function __toString(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isInternal(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isUserDefined(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isAnonymous(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isInstantiable(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isCloneable(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getFileName(): string|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getStartLine(): int|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getEndLine(): int|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDocComment(): string|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getConstructor(): ?ReflectionMethod {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function hasMethod(string $name): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getMethod(string $name): ReflectionMethod {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getMethods(?int $filter = null): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function hasProperty(string $name): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getProperty(string $name): ReflectionProperty {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getProperties(?int $filter = null): array {}
|
2019-11-16 17:40:06 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function hasConstant(string $name): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getConstants(?int $filter = null): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getReflectionConstants(?int $filter = null): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
2023-04-16 20:20:26 +00:00
|
|
|
public function getConstant(string $name): mixed {} // TODO throw exception when the constant doesn't exist
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getReflectionConstant(string $name): ReflectionClassConstant|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getInterfaces(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getInterfaceNames(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isInterface(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getTraits(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getTraitNames(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getTraitAliases(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isTrait(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-06-10 21:10:18 +00:00
|
|
|
public function isEnum(): bool {}
|
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isAbstract(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isFinal(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2022-05-16 18:40:23 +00:00
|
|
|
public function isReadOnly(): bool {}
|
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getModifiers(): int {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isInstance(object $object): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function newInstance(mixed ...$args): object {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function newInstanceWithoutConstructor(): object {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function newInstanceArgs(array $args = []): ?object {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getParentClass(): ReflectionClass|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isSubclassOf(ReflectionClass|string $class): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
2023-01-24 21:26:52 +00:00
|
|
|
public function getStaticProperties(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getStaticPropertyValue(string $name, mixed $default = UNKNOWN): mixed {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function setStaticPropertyValue(string $name, mixed $value): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDefaultProperties(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isIterable(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-04-12 17:53:32 +00:00
|
|
|
/**
|
2021-05-18 15:05:47 +00:00
|
|
|
* @tentative-return-type
|
2020-04-12 17:53:32 +00:00
|
|
|
* @alias ReflectionClass::isIterable
|
|
|
|
*/
|
2021-05-18 15:05:47 +00:00
|
|
|
public function isIterateable(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function implementsInterface(ReflectionClass|string $interface): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getExtension(): ?ReflectionExtension {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getExtensionName(): string|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function inNamespace(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getNamespaceName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getShortName(): string {}
|
2020-05-24 18:57:00 +00:00
|
|
|
|
|
|
|
public function getAttributes(?string $name = null, int $flags = 0): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class ReflectionObject extends ReflectionClass
|
|
|
|
{
|
2020-09-28 21:02:42 +00:00
|
|
|
public function __construct(object $object) {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2019-10-13 18:57:09 +00:00
|
|
|
class ReflectionProperty implements Reflector
|
|
|
|
{
|
2022-07-23 10:59:30 +00:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_STATIC
|
|
|
|
*/
|
|
|
|
public const IS_STATIC = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_READONLY
|
|
|
|
*/
|
|
|
|
public const IS_READONLY = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_PUBLIC
|
|
|
|
*/
|
|
|
|
public const IS_PUBLIC = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_PROTECTED
|
|
|
|
*/
|
|
|
|
public const IS_PROTECTED = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_PRIVATE
|
|
|
|
*/
|
|
|
|
public const IS_PRIVATE = UNKNOWN;
|
|
|
|
|
2021-02-15 11:08:15 +00:00
|
|
|
public string $name;
|
|
|
|
public string $class;
|
2021-02-14 14:21:24 +00:00
|
|
|
|
2020-09-19 18:13:08 +00:00
|
|
|
/** @implementation-alias ReflectionClass::__clone */
|
2021-04-21 08:08:25 +00:00
|
|
|
private function __clone(): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-07-24 08:46:37 +00:00
|
|
|
public function __construct(object|string $class, string $property) {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
public function __toString(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getValue(?object $object = null): mixed {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function setValue(mixed $objectOrValue, mixed $value = UNKNOWN): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isInitialized(?object $object = null): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isPublic(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isPrivate(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isProtected(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isStatic(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-06-02 08:02:56 +00:00
|
|
|
public function isReadOnly(): bool {}
|
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isDefault(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-03-24 12:18:28 +00:00
|
|
|
public function isPromoted(): bool {}
|
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getModifiers(): int {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDeclaringClass(): ReflectionClass {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDocComment(): string|false {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function setAccessible(bool $accessible): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getType(): ?ReflectionType {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function hasType(): bool {}
|
2020-01-09 21:51:15 +00:00
|
|
|
|
|
|
|
public function hasDefaultValue(): bool {}
|
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDefaultValue(): mixed {}
|
2020-05-24 18:57:00 +00:00
|
|
|
|
|
|
|
public function getAttributes(?string $name = null, int $flags = 0): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2019-10-13 18:57:09 +00:00
|
|
|
class ReflectionClassConstant implements Reflector
|
|
|
|
{
|
2022-07-23 10:59:30 +00:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_PUBLIC
|
|
|
|
*/
|
|
|
|
public const IS_PUBLIC = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_PROTECTED
|
|
|
|
*/
|
|
|
|
public const IS_PROTECTED = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_PRIVATE
|
|
|
|
*/
|
|
|
|
public const IS_PRIVATE = UNKNOWN;
|
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue ZEND_ACC_FINAL
|
|
|
|
*/
|
|
|
|
public const IS_FINAL = UNKNOWN;
|
|
|
|
|
2021-02-15 11:08:15 +00:00
|
|
|
public string $name;
|
|
|
|
public string $class;
|
2021-02-14 14:21:24 +00:00
|
|
|
|
2020-09-19 18:13:08 +00:00
|
|
|
/** @implementation-alias ReflectionClass::__clone */
|
2021-04-21 08:08:25 +00:00
|
|
|
private function __clone(): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-07-24 08:46:37 +00:00
|
|
|
public function __construct(object|string $class, string $constant) {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
public function __toString(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getValue(): mixed {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isPublic(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isPrivate(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isProtected(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-07-06 19:38:44 +00:00
|
|
|
public function isFinal(): bool {}
|
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getModifiers(): int {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDeclaringClass(): ReflectionClass {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDocComment(): string|false {}
|
2020-05-24 18:57:00 +00:00
|
|
|
|
|
|
|
public function getAttributes(?string $name = null, int $flags = 0): array {}
|
2020-06-10 21:10:18 +00:00
|
|
|
|
|
|
|
public function isEnumCase(): bool {}
|
2023-04-16 20:20:26 +00:00
|
|
|
|
|
|
|
public function hasType(): bool {}
|
|
|
|
|
|
|
|
public function getType(): ?ReflectionType {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2019-10-13 18:57:09 +00:00
|
|
|
class ReflectionParameter implements Reflector
|
|
|
|
{
|
2021-02-15 11:08:15 +00:00
|
|
|
public string $name;
|
2021-02-14 14:21:24 +00:00
|
|
|
|
2020-09-19 18:13:08 +00:00
|
|
|
/** @implementation-alias ReflectionClass::__clone */
|
2021-04-21 08:08:25 +00:00
|
|
|
private function __clone(): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-07-24 08:46:37 +00:00
|
|
|
/** @param string|array|object $function */
|
2020-09-28 21:02:42 +00:00
|
|
|
public function __construct($function, int|string $param) {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
public function __toString(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isPassedByReference(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function canBePassedByValue(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDeclaringFunction(): ReflectionFunctionAbstract {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDeclaringClass(): ?ReflectionClass {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-02-25 15:21:52 +00:00
|
|
|
/**
|
2021-05-18 15:05:47 +00:00
|
|
|
* @tentative-return-type
|
2020-02-25 15:21:52 +00:00
|
|
|
* @deprecated Use ReflectionParameter::getType() instead
|
|
|
|
*/
|
2021-05-18 15:05:47 +00:00
|
|
|
public function getClass(): ?ReflectionClass {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function hasType(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getType(): ?ReflectionType {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-02-25 15:21:52 +00:00
|
|
|
/**
|
2021-05-18 15:05:47 +00:00
|
|
|
* @tentative-return-type
|
2020-02-25 15:21:52 +00:00
|
|
|
* @deprecated Use ReflectionParameter::getType() instead
|
|
|
|
*/
|
2021-05-18 15:05:47 +00:00
|
|
|
public function isArray(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-02-25 15:21:52 +00:00
|
|
|
/**
|
2021-05-18 15:05:47 +00:00
|
|
|
* @tentative-return-type
|
2020-02-25 15:21:52 +00:00
|
|
|
* @deprecated Use ReflectionParameter::getType() instead
|
|
|
|
*/
|
2021-05-18 15:05:47 +00:00
|
|
|
public function isCallable(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function allowsNull(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getPosition(): int {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isOptional(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isDefaultValueAvailable(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDefaultValue(): mixed {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isDefaultValueConstant(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDefaultValueConstantName(): ?string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isVariadic(): bool {}
|
2020-05-24 18:57:00 +00:00
|
|
|
|
2020-03-24 12:18:28 +00:00
|
|
|
public function isPromoted(): bool {}
|
|
|
|
|
2020-05-24 18:57:00 +00:00
|
|
|
public function getAttributes(?string $name = null, int $flags = 0): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2020-01-13 16:06:26 +00:00
|
|
|
abstract class ReflectionType implements Stringable
|
2019-10-13 18:57:09 +00:00
|
|
|
{
|
2020-09-19 18:13:08 +00:00
|
|
|
/** @implementation-alias ReflectionClass::__clone */
|
2021-04-21 08:08:25 +00:00
|
|
|
private function __clone(): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function allowsNull(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
public function __toString(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class ReflectionNamedType extends ReflectionType
|
|
|
|
{
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isBuiltin(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2020-10-26 07:51:06 +00:00
|
|
|
class ReflectionUnionType extends ReflectionType
|
2019-09-25 11:21:13 +00:00
|
|
|
{
|
|
|
|
public function getTypes(): array {}
|
|
|
|
}
|
|
|
|
|
2021-07-05 12:11:03 +00:00
|
|
|
class ReflectionIntersectionType extends ReflectionType
|
|
|
|
{
|
|
|
|
public function getTypes(): array {}
|
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2019-10-13 18:57:09 +00:00
|
|
|
class ReflectionExtension implements Reflector
|
|
|
|
{
|
2021-02-15 11:08:15 +00:00
|
|
|
public string $name;
|
2021-02-14 14:21:24 +00:00
|
|
|
|
2020-09-19 18:13:08 +00:00
|
|
|
/** @implementation-alias ReflectionClass::__clone */
|
2021-04-21 08:08:25 +00:00
|
|
|
private function __clone(): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
|
|
|
public function __construct(string $name) {}
|
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
public function __toString(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getVersion(): ?string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getFunctions(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getConstants(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getINIEntries(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getClasses(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getClassNames(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getDependencies(): array {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function info(): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isPersistent(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function isTemporary(): bool {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2019-10-13 18:57:09 +00:00
|
|
|
class ReflectionZendExtension implements Reflector
|
|
|
|
{
|
2021-02-15 11:08:15 +00:00
|
|
|
public string $name;
|
2021-02-14 14:21:24 +00:00
|
|
|
|
2020-09-19 18:13:08 +00:00
|
|
|
/** @implementation-alias ReflectionClass::__clone */
|
2021-04-21 08:08:25 +00:00
|
|
|
private function __clone(): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
|
|
|
public function __construct(string $name) {}
|
|
|
|
|
2020-01-13 16:06:26 +00:00
|
|
|
public function __toString(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getName(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getVersion(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getAuthor(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getURL(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2021-05-18 15:05:47 +00:00
|
|
|
/** @tentative-return-type */
|
|
|
|
public function getCopyright(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
}
|
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2019-10-13 18:57:09 +00:00
|
|
|
final class ReflectionReference
|
|
|
|
{
|
2020-09-14 14:06:18 +00:00
|
|
|
public static function fromArrayElement(array $array, int|string $key): ?ReflectionReference {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2019-11-16 17:40:06 +00:00
|
|
|
public function getId(): string {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
2020-09-19 18:13:08 +00:00
|
|
|
/** @implementation-alias ReflectionClass::__clone */
|
2020-10-23 12:09:23 +00:00
|
|
|
private function __clone(): void {}
|
2019-10-13 18:57:09 +00:00
|
|
|
|
|
|
|
private function __construct() {}
|
|
|
|
}
|
2020-05-24 18:57:00 +00:00
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2021-09-27 14:35:52 +00:00
|
|
|
class ReflectionAttribute implements Reflector
|
2020-05-24 18:57:00 +00:00
|
|
|
{
|
2022-07-23 10:59:30 +00:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
* @cvalue REFLECTION_ATTRIBUTE_IS_INSTANCEOF
|
|
|
|
*/
|
|
|
|
public const IS_INSTANCEOF = UNKNOWN;
|
|
|
|
|
2020-05-24 18:57:00 +00:00
|
|
|
public function getName(): string {}
|
2020-06-28 17:16:33 +00:00
|
|
|
public function getTarget(): int {}
|
|
|
|
public function isRepeated(): bool {}
|
2020-05-24 18:57:00 +00:00
|
|
|
public function getArguments(): array {}
|
|
|
|
public function newInstance(): object {}
|
|
|
|
|
2021-06-19 19:28:18 +00:00
|
|
|
public function __toString(): string {}
|
|
|
|
|
2020-10-23 12:09:23 +00:00
|
|
|
private function __clone(): void {}
|
2020-05-24 18:57:00 +00:00
|
|
|
|
|
|
|
private function __construct() {}
|
|
|
|
}
|
2020-06-10 21:10:18 +00:00
|
|
|
|
2021-09-27 14:35:52 +00:00
|
|
|
class ReflectionEnum extends ReflectionClass
|
2020-06-10 21:10:18 +00:00
|
|
|
{
|
|
|
|
public function __construct(object|string $objectOrClass) {}
|
|
|
|
|
|
|
|
public function hasCase(string $name): bool {}
|
|
|
|
|
|
|
|
public function getCase(string $name): ReflectionEnumUnitCase {}
|
|
|
|
|
|
|
|
public function getCases(): array {}
|
|
|
|
|
|
|
|
public function isBacked(): bool {}
|
|
|
|
|
2022-06-02 16:13:21 +00:00
|
|
|
public function getBackingType(): ?ReflectionNamedType {}
|
2020-06-10 21:10:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class ReflectionEnumUnitCase extends ReflectionClassConstant
|
|
|
|
{
|
|
|
|
public function __construct(object|string $class, string $constant) {}
|
|
|
|
|
|
|
|
public function getEnum(): ReflectionEnum {}
|
|
|
|
|
2021-05-26 10:37:27 +00:00
|
|
|
/**
|
|
|
|
* @implementation-alias ReflectionClassConstant::getValue
|
|
|
|
* @no-verify
|
|
|
|
*/
|
2020-06-10 21:10:18 +00:00
|
|
|
public function getValue(): UnitEnum {}
|
|
|
|
}
|
|
|
|
|
2021-09-27 14:35:52 +00:00
|
|
|
class ReflectionEnumBackedCase extends ReflectionEnumUnitCase
|
2020-06-10 21:10:18 +00:00
|
|
|
{
|
|
|
|
public function __construct(object|string $class, string $constant) {}
|
|
|
|
|
|
|
|
public function getBackingValue(): int|string {}
|
|
|
|
}
|
2021-04-26 16:07:06 +00:00
|
|
|
|
2021-07-20 11:16:41 +00:00
|
|
|
/** @not-serializable */
|
2021-04-26 16:07:06 +00:00
|
|
|
final class ReflectionFiber
|
|
|
|
{
|
|
|
|
public function __construct(Fiber $fiber) {}
|
|
|
|
|
|
|
|
public function getFiber(): Fiber {}
|
|
|
|
|
2023-02-22 18:39:10 +00:00
|
|
|
public function getExecutingFile(): ?string {}
|
2021-04-26 16:07:06 +00:00
|
|
|
|
2023-02-22 18:39:10 +00:00
|
|
|
public function getExecutingLine(): ?int {}
|
2021-04-26 16:07:06 +00:00
|
|
|
|
|
|
|
public function getCallable(): callable {}
|
|
|
|
|
|
|
|
public function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT): array {}
|
|
|
|
}
|