mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add missing classes to stubs
This commit is contained in:
parent
57cb01a927
commit
45fa7596dc
18 changed files with 135 additions and 20 deletions
|
@ -123,3 +123,7 @@ class ArithmeticError extends Error
|
|||
class DivisionByZeroError extends ArithmeticError
|
||||
{
|
||||
}
|
||||
|
||||
class UnhandledMatchError extends Error
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 3699b51b31e509c11435845c7e0d35a2608dd268 */
|
||||
* Stub hash: 2fa61163fb7db8d87b14f9cf9a42c3cd8093f2a6 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -180,3 +180,8 @@ static const zend_function_entry class_ArithmeticError_methods[] = {
|
|||
static const zend_function_entry class_DivisionByZeroError_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_UnhandledMatchError_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
|
|
@ -20,3 +20,7 @@ final class Generator implements Iterator
|
|||
|
||||
public function getReturn(): mixed {}
|
||||
}
|
||||
|
||||
class ClosedGeneratorException extends Exception
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 18d2bb68729ff622a5c0c124a8822f7ee882c2ec */
|
||||
* Stub hash: 50044c6c8d2a162a988906c0b752a5fe28adb933 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_rewind, 0, 0, IS_VOID, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -46,3 +46,8 @@ static const zend_function_entry class_Generator_methods[] = {
|
|||
ZEND_ME(Generator, getReturn, arginfo_class_Generator_getReturn, ZEND_ACC_PUBLIC)
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_ClosedGeneratorException_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
/** @generate-function-entries */
|
||||
|
||||
class DOMDocumentType
|
||||
class DOMDocumentType extends DOMNode
|
||||
{
|
||||
}
|
||||
|
||||
class DOMCdataSection
|
||||
class DOMCdataSection extends DOMText
|
||||
{
|
||||
public function __construct(string $data) {}
|
||||
}
|
||||
|
||||
class DOMComment
|
||||
class DOMComment extends DOMCharacterData
|
||||
{
|
||||
public function __construct(string $data = "") {}
|
||||
}
|
||||
|
@ -93,6 +93,10 @@ class DOMNode
|
|||
public function replaceChild(DOMNode $node, DOMNode $child) {}
|
||||
}
|
||||
|
||||
class DOMNameSpaceNode
|
||||
{
|
||||
}
|
||||
|
||||
class DOMImplementation
|
||||
{
|
||||
/** @return void */
|
||||
|
@ -108,7 +112,7 @@ class DOMImplementation
|
|||
public function createDocument(?string $namespace = null, string $qualifiedName = "", ?DOMDocumentType $doctype = null) {}
|
||||
}
|
||||
|
||||
class DOMDocumentFragment implements DOMParentNode
|
||||
class DOMDocumentFragment extends DOMNode implements DOMParentNode
|
||||
{
|
||||
public function __construct() {}
|
||||
|
||||
|
@ -133,7 +137,7 @@ class DOMNodeList implements IteratorAggregate, Countable
|
|||
public function item(int $index) {}
|
||||
}
|
||||
|
||||
class DOMCharacterData implements DOMChildNode
|
||||
class DOMCharacterData extends DOMNode implements DOMChildNode
|
||||
{
|
||||
/** @return bool */
|
||||
public function appendData(string $data) {}
|
||||
|
@ -162,7 +166,7 @@ class DOMCharacterData implements DOMChildNode
|
|||
public function after(...$nodes): void {}
|
||||
}
|
||||
|
||||
class DOMAttr
|
||||
class DOMAttr extends DOMNode
|
||||
{
|
||||
public function __construct(string $name, string $value = "") {}
|
||||
|
||||
|
@ -170,7 +174,7 @@ class DOMAttr
|
|||
public function isId() {}
|
||||
}
|
||||
|
||||
class DOMElement implements DOMParentNode, DOMChildNode
|
||||
class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode
|
||||
{
|
||||
public function __construct(string $qualifiedName, ?string $value = null, string $namespace = "") {}
|
||||
|
||||
|
@ -246,7 +250,7 @@ class DOMElement implements DOMParentNode, DOMChildNode
|
|||
public function prepend(...$nodes): void {}
|
||||
}
|
||||
|
||||
class DOMDocument implements DOMParentNode
|
||||
class DOMDocument extends DOMNode implements DOMParentNode
|
||||
{
|
||||
public function __construct(string $version = "1.0", string $encoding = "") {}
|
||||
|
||||
|
@ -358,7 +362,7 @@ final class DOMException extends Exception
|
|||
{
|
||||
}
|
||||
|
||||
class DOMText
|
||||
class DOMText extends DOMCharacterData
|
||||
{
|
||||
public function __construct(string $data = "") {}
|
||||
|
||||
|
@ -396,7 +400,7 @@ class DOMEntity extends DOMNode
|
|||
{
|
||||
}
|
||||
|
||||
class DOMEntityReference
|
||||
class DOMEntityReference extends DOMNode
|
||||
{
|
||||
public function __construct(string $name) {}
|
||||
}
|
||||
|
@ -405,7 +409,7 @@ class DOMNotation extends DOMNode
|
|||
{
|
||||
}
|
||||
|
||||
class DOMProcessingInstruction
|
||||
class DOMProcessingInstruction extends DOMNode
|
||||
{
|
||||
public function __construct(string $name, string $value = "") {}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: f4f6923a713a51d2944a21a123967343320be15c */
|
||||
* Stub hash: a4767d6ea60859c8897f681fb69d6f73b1f50471 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 1)
|
||||
ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)
|
||||
|
@ -646,6 +646,11 @@ static const zend_function_entry class_DOMNode_methods[] = {
|
|||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_DOMNameSpaceNode_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_DOMImplementation_methods[] = {
|
||||
ZEND_ME(DOMImplementation, getFeature, arginfo_class_DOMImplementation_getFeature, ZEND_ACC_PUBLIC)
|
||||
ZEND_ME(DOMImplementation, hasFeature, arginfo_class_DOMImplementation_hasFeature, ZEND_ACC_PUBLIC)
|
||||
|
|
|
@ -68,8 +68,17 @@ final class FFI
|
|||
|
||||
namespace FFI {
|
||||
|
||||
final class CData {
|
||||
}
|
||||
|
||||
final class CType {
|
||||
public function getName() : string {}
|
||||
}
|
||||
|
||||
class Exception extends \Error {
|
||||
}
|
||||
|
||||
final class ParserException extends Exception {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 5aeec68fea7a94cd643464acfb10bf4cfcc863da */
|
||||
* Stub hash: b01d17eaac68e56d3f2c2c2bc86d44bcc8ea7c26 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_FFI_cdef, 0, 0, FFI, 0)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_STRING, 0, "\"\"")
|
||||
|
@ -125,7 +125,22 @@ static const zend_function_entry class_FFI_methods[] = {
|
|||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_FFI_CData_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_FFI_CType_methods[] = {
|
||||
ZEND_ME(FFI_CType, getName, arginfo_class_FFI_CType_getName, ZEND_ACC_PUBLIC)
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_FFI_Exception_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_FFI_ParserException_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
/** @generate-function-entries */
|
||||
|
||||
class IntlException extends Exception
|
||||
{
|
||||
}
|
||||
|
||||
/* calendar */
|
||||
|
||||
/** @param IntlTimeZone|DateTimeZone|string|null $timezone */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: fb91064c471d6bced3a6dad8beb56c92c9047e52 */
|
||||
* Stub hash: 7c89762dffb3a8b4aae51ea823af2494e7dd25d5 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_intlcal_create_instance, 0, 0, IntlCalendar, 1)
|
||||
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, timezone, "null")
|
||||
|
@ -1165,3 +1165,8 @@ static const zend_function_entry ext_functions[] = {
|
|||
ZEND_FE(transliterator_get_error_message, arginfo_transliterator_get_error_message)
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_IntlException_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
|
|
@ -15,3 +15,7 @@ interface JsonSerializable
|
|||
/** @return mixed */
|
||||
public function jsonSerialize();
|
||||
}
|
||||
|
||||
class JsonException extends Exception
|
||||
{
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 2d1e6c422221ec7efbbd540ee777a5ce2c639943 */
|
||||
* Stub hash: 200044f4196cd8efd1ec9a2e93d4bbb63618b3c9 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_json_encode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
|
||||
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
|
||||
|
@ -43,3 +43,8 @@ static const zend_function_entry class_JsonSerializable_methods[] = {
|
|||
ZEND_ABSTRACT_ME_WITH_FLAGS(JsonSerializable, jsonSerialize, arginfo_class_JsonSerializable_jsonSerialize, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_JsonException_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
/** @generate-function-entries */
|
||||
|
||||
class LibXMLError
|
||||
{
|
||||
}
|
||||
|
||||
/** @param resource $context */
|
||||
function libxml_set_streams_context($context): void {}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: ded229511dc2bc3912d35b8055c0fd69420baff0 */
|
||||
* Stub hash: 1cc89432b61dc1997afe96e02f82a8fd1a6fcfc4 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_streams_context, 0, 1, IS_VOID, 0)
|
||||
ZEND_ARG_INFO(0, context)
|
||||
|
@ -46,3 +46,8 @@ static const zend_function_entry ext_functions[] = {
|
|||
ZEND_FE(libxml_set_external_entity_loader, arginfo_libxml_set_external_entity_loader)
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_LibXMLError_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
|
|
@ -2,4 +2,8 @@
|
|||
|
||||
/** @generate-function-entries */
|
||||
|
||||
class PDOException extends RuntimeException
|
||||
{
|
||||
}
|
||||
|
||||
function pdo_drivers(): array {}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 5f8d0ae7732bdca8c60638021c4368f55d62826f */
|
||||
* Stub hash: 307a770b43157120de39093535ea4ee20c4524fa */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pdo_drivers, 0, 0, IS_ARRAY, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -12,3 +12,8 @@ static const zend_function_entry ext_functions[] = {
|
|||
ZEND_FE(pdo_drivers, arginfo_pdo_drivers)
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_PDOException_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
|
|
@ -4,6 +4,11 @@
|
|||
|
||||
namespace {
|
||||
|
||||
interface _ZendTestInterface
|
||||
{
|
||||
}
|
||||
|
||||
/** @alias _ZendTestClassAlias */
|
||||
class _ZendTestClass {
|
||||
public static function is_object(): int {}
|
||||
|
||||
|
@ -13,10 +18,18 @@ class _ZendTestClass {
|
|||
public function returnsStatic(): static {}
|
||||
}
|
||||
|
||||
class _ZendTestChildClass extends _ZendTestClass
|
||||
{
|
||||
}
|
||||
|
||||
trait _ZendTestTrait {
|
||||
public function testMethod(): bool {}
|
||||
}
|
||||
|
||||
final class ZendTestAttribute {
|
||||
|
||||
}
|
||||
|
||||
function zend_test_array_return(): array {}
|
||||
|
||||
function zend_test_nullable_array_return(): ?array {}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: d98281072c6eeb5631dbf3ba975807f49a553b3e */
|
||||
* Stub hash: 3240b7fa3461b40a211371250c4975802f44185b */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_array_return, 0, 0, IS_ARRAY, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -111,6 +111,11 @@ static const zend_function_entry ext_functions[] = {
|
|||
};
|
||||
|
||||
|
||||
static const zend_function_entry class__ZendTestInterface_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class__ZendTestClass_methods[] = {
|
||||
ZEND_ME(_ZendTestClass, is_object, arginfo_class__ZendTestClass_is_object, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
ZEND_ME(_ZendTestClass, __toString, arginfo_class__ZendTestClass___toString, ZEND_ACC_PUBLIC|ZEND_ACC_DEPRECATED)
|
||||
|
@ -119,12 +124,22 @@ static const zend_function_entry class__ZendTestClass_methods[] = {
|
|||
};
|
||||
|
||||
|
||||
static const zend_function_entry class__ZendTestChildClass_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class__ZendTestTrait_methods[] = {
|
||||
ZEND_ME(_ZendTestTrait, testMethod, arginfo_class__ZendTestTrait_testMethod, ZEND_ACC_PUBLIC)
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_ZendTestAttribute_methods[] = {
|
||||
ZEND_FE_END
|
||||
};
|
||||
|
||||
|
||||
static const zend_function_entry class_ZendTestNS_Foo_methods[] = {
|
||||
ZEND_ME(ZendTestNS_Foo, method, arginfo_class_ZendTestNS_Foo_method, ZEND_ACC_PUBLIC)
|
||||
ZEND_FE_END
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue