summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2021-02-09 22:38:06 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2021-02-09 22:38:06 +0100
commit45fa7596dc4247fc8750b4bdb7a57f020997925e (patch)
tree1b36dd2bdedb22ff1b85aff8db287bda5b82118f
parent57cb01a9277b6e64a68119499d9f9673b45c6184 (diff)
downloadphp-git-45fa7596dc4247fc8750b4bdb7a57f020997925e.tar.gz
Add missing classes to stubs
-rw-r--r--Zend/zend_exceptions.stub.php4
-rw-r--r--Zend/zend_exceptions_arginfo.h7
-rw-r--r--Zend/zend_generators.stub.php4
-rw-r--r--Zend/zend_generators_arginfo.h7
-rw-r--r--ext/dom/php_dom.stub.php26
-rw-r--r--ext/dom/php_dom_arginfo.h7
-rw-r--r--ext/ffi/ffi.stub.php9
-rw-r--r--ext/ffi/ffi_arginfo.h17
-rw-r--r--ext/intl/php_intl.stub.php4
-rw-r--r--ext/intl/php_intl_arginfo.h7
-rw-r--r--ext/json/json.stub.php4
-rw-r--r--ext/json/json_arginfo.h7
-rw-r--r--ext/libxml/libxml.stub.php4
-rw-r--r--ext/libxml/libxml_arginfo.h7
-rw-r--r--ext/pdo/pdo.stub.php4
-rw-r--r--ext/pdo/pdo_arginfo.h7
-rw-r--r--ext/zend_test/test.stub.php13
-rw-r--r--ext/zend_test/test_arginfo.h17
18 files changed, 135 insertions, 20 deletions
diff --git a/Zend/zend_exceptions.stub.php b/Zend/zend_exceptions.stub.php
index 11c1d500d3..3df58543ed 100644
--- a/Zend/zend_exceptions.stub.php
+++ b/Zend/zend_exceptions.stub.php
@@ -123,3 +123,7 @@ class ArithmeticError extends Error
class DivisionByZeroError extends ArithmeticError
{
}
+
+class UnhandledMatchError extends Error
+{
+}
diff --git a/Zend/zend_exceptions_arginfo.h b/Zend/zend_exceptions_arginfo.h
index 5b8dab9b4d..f46ac083dd 100644
--- a/Zend/zend_exceptions_arginfo.h
+++ b/Zend/zend_exceptions_arginfo.h
@@ -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
+};
diff --git a/Zend/zend_generators.stub.php b/Zend/zend_generators.stub.php
index f2e47616ba..751b328d4c 100644
--- a/Zend/zend_generators.stub.php
+++ b/Zend/zend_generators.stub.php
@@ -20,3 +20,7 @@ final class Generator implements Iterator
public function getReturn(): mixed {}
}
+
+class ClosedGeneratorException extends Exception
+{
+}
diff --git a/Zend/zend_generators_arginfo.h b/Zend/zend_generators_arginfo.h
index 22084d9feb..2b6f22f9f5 100644
--- a/Zend/zend_generators_arginfo.h
+++ b/Zend/zend_generators_arginfo.h
@@ -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
+};
diff --git a/ext/dom/php_dom.stub.php b/ext/dom/php_dom.stub.php
index 29e7a0ad80..2a9a9cff80 100644
--- a/ext/dom/php_dom.stub.php
+++ b/ext/dom/php_dom.stub.php
@@ -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 = "") {}
}
diff --git a/ext/dom/php_dom_arginfo.h b/ext/dom/php_dom_arginfo.h
index 43ed756b29..c3c54a4de7 100644
--- a/ext/dom/php_dom_arginfo.h
+++ b/ext/dom/php_dom_arginfo.h
@@ -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)
diff --git a/ext/ffi/ffi.stub.php b/ext/ffi/ffi.stub.php
index dba2dcc308..61178774b8 100644
--- a/ext/ffi/ffi.stub.php
+++ b/ext/ffi/ffi.stub.php
@@ -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 {
+}
+
}
diff --git a/ext/ffi/ffi_arginfo.h b/ext/ffi/ffi_arginfo.h
index d9e9dec3d0..fac33f1dbd 100644
--- a/ext/ffi/ffi_arginfo.h
+++ b/ext/ffi/ffi_arginfo.h
@@ -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
+};
diff --git a/ext/intl/php_intl.stub.php b/ext/intl/php_intl.stub.php
index 8600920a01..0a388d786d 100644
--- a/ext/intl/php_intl.stub.php
+++ b/ext/intl/php_intl.stub.php
@@ -2,6 +2,10 @@
/** @generate-function-entries */
+class IntlException extends Exception
+{
+}
+
/* calendar */
/** @param IntlTimeZone|DateTimeZone|string|null $timezone */
diff --git a/ext/intl/php_intl_arginfo.h b/ext/intl/php_intl_arginfo.h
index 351662024e..f0badd2d79 100644
--- a/ext/intl/php_intl_arginfo.h
+++ b/ext/intl/php_intl_arginfo.h
@@ -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
+};
diff --git a/ext/json/json.stub.php b/ext/json/json.stub.php
index a9b5bbf511..55cc9068bf 100644
--- a/ext/json/json.stub.php
+++ b/ext/json/json.stub.php
@@ -15,3 +15,7 @@ interface JsonSerializable
/** @return mixed */
public function jsonSerialize();
}
+
+class JsonException extends Exception
+{
+}
diff --git a/ext/json/json_arginfo.h b/ext/json/json_arginfo.h
index c4b20d7013..ded4bf663e 100644
--- a/ext/json/json_arginfo.h
+++ b/ext/json/json_arginfo.h
@@ -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
+};
diff --git a/ext/libxml/libxml.stub.php b/ext/libxml/libxml.stub.php
index 12685bd8ce..c99b2254a2 100644
--- a/ext/libxml/libxml.stub.php
+++ b/ext/libxml/libxml.stub.php
@@ -2,6 +2,10 @@
/** @generate-function-entries */
+class LibXMLError
+{
+}
+
/** @param resource $context */
function libxml_set_streams_context($context): void {}
diff --git a/ext/libxml/libxml_arginfo.h b/ext/libxml/libxml_arginfo.h
index 217bff288b..ee0b4723d3 100644
--- a/ext/libxml/libxml_arginfo.h
+++ b/ext/libxml/libxml_arginfo.h
@@ -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
+};
diff --git a/ext/pdo/pdo.stub.php b/ext/pdo/pdo.stub.php
index a5ec51f7f7..8e8a60cfd2 100644
--- a/ext/pdo/pdo.stub.php
+++ b/ext/pdo/pdo.stub.php
@@ -2,4 +2,8 @@
/** @generate-function-entries */
+class PDOException extends RuntimeException
+{
+}
+
function pdo_drivers(): array {}
diff --git a/ext/pdo/pdo_arginfo.h b/ext/pdo/pdo_arginfo.h
index 1dda2fd42a..d6d69898eb 100644
--- a/ext/pdo/pdo_arginfo.h
+++ b/ext/pdo/pdo_arginfo.h
@@ -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
+};
diff --git a/ext/zend_test/test.stub.php b/ext/zend_test/test.stub.php
index 486b383e1d..d9db786cee 100644
--- a/ext/zend_test/test.stub.php
+++ b/ext/zend_test/test.stub.php
@@ -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 {}
diff --git a/ext/zend_test/test_arginfo.h b/ext/zend_test/test_arginfo.h
index 6103970585..c58d53b457 100644
--- a/ext/zend_test/test_arginfo.h
+++ b/ext/zend_test/test_arginfo.h
@@ -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