Skip to content

Commit 45fa759

Browse files
committed
Add missing classes to stubs
1 parent 57cb01a commit 45fa759

18 files changed

+135
-20
lines changed

Zend/zend_exceptions.stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,7 @@ class ArithmeticError extends Error
123123
class DivisionByZeroError extends ArithmeticError
124124
{
125125
}
126+
127+
class UnhandledMatchError extends Error
128+
{
129+
}

Zend/zend_exceptions_arginfo.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 3699b51b31e509c11435845c7e0d35a2608dd268 */
2+
* Stub hash: 2fa61163fb7db8d87b14f9cf9a42c3cd8093f2a6 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Throwable_getMessage, 0, 0, IS_STRING, 0)
55
ZEND_END_ARG_INFO()
@@ -180,3 +180,8 @@ static const zend_function_entry class_ArithmeticError_methods[] = {
180180
static const zend_function_entry class_DivisionByZeroError_methods[] = {
181181
ZEND_FE_END
182182
};
183+
184+
185+
static const zend_function_entry class_UnhandledMatchError_methods[] = {
186+
ZEND_FE_END
187+
};

Zend/zend_generators.stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ public function throw(Throwable $exception): mixed {}
2020

2121
public function getReturn(): mixed {}
2222
}
23+
24+
class ClosedGeneratorException extends Exception
25+
{
26+
}

Zend/zend_generators_arginfo.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 18d2bb68729ff622a5c0c124a8822f7ee882c2ec */
2+
* Stub hash: 50044c6c8d2a162a988906c0b752a5fe28adb933 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Generator_rewind, 0, 0, IS_VOID, 0)
55
ZEND_END_ARG_INFO()
@@ -46,3 +46,8 @@ static const zend_function_entry class_Generator_methods[] = {
4646
ZEND_ME(Generator, getReturn, arginfo_class_Generator_getReturn, ZEND_ACC_PUBLIC)
4747
ZEND_FE_END
4848
};
49+
50+
51+
static const zend_function_entry class_ClosedGeneratorException_methods[] = {
52+
ZEND_FE_END
53+
};

ext/dom/php_dom.stub.php

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
/** @generate-function-entries */
44

5-
class DOMDocumentType
5+
class DOMDocumentType extends DOMNode
66
{
77
}
88

9-
class DOMCdataSection
9+
class DOMCdataSection extends DOMText
1010
{
1111
public function __construct(string $data) {}
1212
}
1313

14-
class DOMComment
14+
class DOMComment extends DOMCharacterData
1515
{
1616
public function __construct(string $data = "") {}
1717
}
@@ -93,6 +93,10 @@ public function removeChild(DOMNode $child) {}
9393
public function replaceChild(DOMNode $node, DOMNode $child) {}
9494
}
9595

96+
class DOMNameSpaceNode
97+
{
98+
}
99+
96100
class DOMImplementation
97101
{
98102
/** @return void */
@@ -108,7 +112,7 @@ public function createDocumentType(string $qualifiedName, string $publicId = "",
108112
public function createDocument(?string $namespace = null, string $qualifiedName = "", ?DOMDocumentType $doctype = null) {}
109113
}
110114

111-
class DOMDocumentFragment implements DOMParentNode
115+
class DOMDocumentFragment extends DOMNode implements DOMParentNode
112116
{
113117
public function __construct() {}
114118

@@ -133,7 +137,7 @@ public function getIterator(): Iterator {}
133137
public function item(int $index) {}
134138
}
135139

136-
class DOMCharacterData implements DOMChildNode
140+
class DOMCharacterData extends DOMNode implements DOMChildNode
137141
{
138142
/** @return bool */
139143
public function appendData(string $data) {}
@@ -162,15 +166,15 @@ public function before(... $nodes): void {}
162166
public function after(...$nodes): void {}
163167
}
164168

165-
class DOMAttr
169+
class DOMAttr extends DOMNode
166170
{
167171
public function __construct(string $name, string $value = "") {}
168172

169173
/** @return bool */
170174
public function isId() {}
171175
}
172176

173-
class DOMElement implements DOMParentNode, DOMChildNode
177+
class DOMElement extends DOMNode implements DOMParentNode, DOMChildNode
174178
{
175179
public function __construct(string $qualifiedName, ?string $value = null, string $namespace = "") {}
176180

@@ -246,7 +250,7 @@ public function append(...$nodes): void {}
246250
public function prepend(...$nodes): void {}
247251
}
248252

249-
class DOMDocument implements DOMParentNode
253+
class DOMDocument extends DOMNode implements DOMParentNode
250254
{
251255
public function __construct(string $version = "1.0", string $encoding = "") {}
252256

@@ -358,7 +362,7 @@ final class DOMException extends Exception
358362
{
359363
}
360364

361-
class DOMText
365+
class DOMText extends DOMCharacterData
362366
{
363367
public function __construct(string $data = "") {}
364368

@@ -396,7 +400,7 @@ class DOMEntity extends DOMNode
396400
{
397401
}
398402

399-
class DOMEntityReference
403+
class DOMEntityReference extends DOMNode
400404
{
401405
public function __construct(string $name) {}
402406
}
@@ -405,7 +409,7 @@ class DOMNotation extends DOMNode
405409
{
406410
}
407411

408-
class DOMProcessingInstruction
412+
class DOMProcessingInstruction extends DOMNode
409413
{
410414
public function __construct(string $name, string $value = "") {}
411415
}

ext/dom/php_dom_arginfo.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: f4f6923a713a51d2944a21a123967343320be15c */
2+
* Stub hash: a4767d6ea60859c8897f681fb69d6f73b1f50471 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 1)
55
ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)
@@ -646,6 +646,11 @@ static const zend_function_entry class_DOMNode_methods[] = {
646646
};
647647

648648

649+
static const zend_function_entry class_DOMNameSpaceNode_methods[] = {
650+
ZEND_FE_END
651+
};
652+
653+
649654
static const zend_function_entry class_DOMImplementation_methods[] = {
650655
ZEND_ME(DOMImplementation, getFeature, arginfo_class_DOMImplementation_getFeature, ZEND_ACC_PUBLIC)
651656
ZEND_ME(DOMImplementation, hasFeature, arginfo_class_DOMImplementation_hasFeature, ZEND_ACC_PUBLIC)

ext/ffi/ffi.stub.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,17 @@ public static function isNull(FFI\CData $ptr): bool {}
6868

6969
namespace FFI {
7070

71+
final class CData {
72+
}
73+
7174
final class CType {
7275
public function getName() : string {}
7376
}
7477

78+
class Exception extends \Error {
79+
}
80+
81+
final class ParserException extends Exception {
82+
}
83+
7584
}

ext/ffi/ffi_arginfo.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 5aeec68fea7a94cd643464acfb10bf4cfcc863da */
2+
* Stub hash: b01d17eaac68e56d3f2c2c2bc86d44bcc8ea7c26 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_FFI_cdef, 0, 0, FFI, 0)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, code, IS_STRING, 0, "\"\"")
@@ -125,7 +125,22 @@ static const zend_function_entry class_FFI_methods[] = {
125125
};
126126

127127

128+
static const zend_function_entry class_FFI_CData_methods[] = {
129+
ZEND_FE_END
130+
};
131+
132+
128133
static const zend_function_entry class_FFI_CType_methods[] = {
129134
ZEND_ME(FFI_CType, getName, arginfo_class_FFI_CType_getName, ZEND_ACC_PUBLIC)
130135
ZEND_FE_END
131136
};
137+
138+
139+
static const zend_function_entry class_FFI_Exception_methods[] = {
140+
ZEND_FE_END
141+
};
142+
143+
144+
static const zend_function_entry class_FFI_ParserException_methods[] = {
145+
ZEND_FE_END
146+
};

ext/intl/php_intl.stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
/** @generate-function-entries */
44

5+
class IntlException extends Exception
6+
{
7+
}
8+
59
/* calendar */
610

711
/** @param IntlTimeZone|DateTimeZone|string|null $timezone */

ext/intl/php_intl_arginfo.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: fb91064c471d6bced3a6dad8beb56c92c9047e52 */
2+
* Stub hash: 7c89762dffb3a8b4aae51ea823af2494e7dd25d5 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_intlcal_create_instance, 0, 0, IntlCalendar, 1)
55
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, timezone, "null")
@@ -1165,3 +1165,8 @@ static const zend_function_entry ext_functions[] = {
11651165
ZEND_FE(transliterator_get_error_message, arginfo_transliterator_get_error_message)
11661166
ZEND_FE_END
11671167
};
1168+
1169+
1170+
static const zend_function_entry class_IntlException_methods[] = {
1171+
ZEND_FE_END
1172+
};

ext/json/json.stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ interface JsonSerializable
1515
/** @return mixed */
1616
public function jsonSerialize();
1717
}
18+
19+
class JsonException extends Exception
20+
{
21+
}

ext/json/json_arginfo.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 2d1e6c422221ec7efbbd540ee777a5ce2c639943 */
2+
* Stub hash: 200044f4196cd8efd1ec9a2e93d4bbb63618b3c9 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_json_encode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
@@ -43,3 +43,8 @@ static const zend_function_entry class_JsonSerializable_methods[] = {
4343
ZEND_ABSTRACT_ME_WITH_FLAGS(JsonSerializable, jsonSerialize, arginfo_class_JsonSerializable_jsonSerialize, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
4444
ZEND_FE_END
4545
};
46+
47+
48+
static const zend_function_entry class_JsonException_methods[] = {
49+
ZEND_FE_END
50+
};

ext/libxml/libxml.stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
/** @generate-function-entries */
44

5+
class LibXMLError
6+
{
7+
}
8+
59
/** @param resource $context */
610
function libxml_set_streams_context($context): void {}
711

ext/libxml/libxml_arginfo.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: ded229511dc2bc3912d35b8055c0fd69420baff0 */
2+
* Stub hash: 1cc89432b61dc1997afe96e02f82a8fd1a6fcfc4 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_streams_context, 0, 1, IS_VOID, 0)
55
ZEND_ARG_INFO(0, context)
@@ -46,3 +46,8 @@ static const zend_function_entry ext_functions[] = {
4646
ZEND_FE(libxml_set_external_entity_loader, arginfo_libxml_set_external_entity_loader)
4747
ZEND_FE_END
4848
};
49+
50+
51+
static const zend_function_entry class_LibXMLError_methods[] = {
52+
ZEND_FE_END
53+
};

ext/pdo/pdo.stub.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
/** @generate-function-entries */
44

5+
class PDOException extends RuntimeException
6+
{
7+
}
8+
59
function pdo_drivers(): array {}

ext/pdo/pdo_arginfo.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 5f8d0ae7732bdca8c60638021c4368f55d62826f */
2+
* Stub hash: 307a770b43157120de39093535ea4ee20c4524fa */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pdo_drivers, 0, 0, IS_ARRAY, 0)
55
ZEND_END_ARG_INFO()
@@ -12,3 +12,8 @@ static const zend_function_entry ext_functions[] = {
1212
ZEND_FE(pdo_drivers, arginfo_pdo_drivers)
1313
ZEND_FE_END
1414
};
15+
16+
17+
static const zend_function_entry class_PDOException_methods[] = {
18+
ZEND_FE_END
19+
};

ext/zend_test/test.stub.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
namespace {
66

7+
interface _ZendTestInterface
8+
{
9+
}
10+
11+
/** @alias _ZendTestClassAlias */
712
class _ZendTestClass {
813
public static function is_object(): int {}
914

@@ -13,10 +18,18 @@ public function __toString(): string {}
1318
public function returnsStatic(): static {}
1419
}
1520

21+
class _ZendTestChildClass extends _ZendTestClass
22+
{
23+
}
24+
1625
trait _ZendTestTrait {
1726
public function testMethod(): bool {}
1827
}
1928

29+
final class ZendTestAttribute {
30+
31+
}
32+
2033
function zend_test_array_return(): array {}
2134

2235
function zend_test_nullable_array_return(): ?array {}

ext/zend_test/test_arginfo.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: d98281072c6eeb5631dbf3ba975807f49a553b3e */
2+
* Stub hash: 3240b7fa3461b40a211371250c4975802f44185b */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_array_return, 0, 0, IS_ARRAY, 0)
55
ZEND_END_ARG_INFO()
@@ -111,6 +111,11 @@ static const zend_function_entry ext_functions[] = {
111111
};
112112

113113

114+
static const zend_function_entry class__ZendTestInterface_methods[] = {
115+
ZEND_FE_END
116+
};
117+
118+
114119
static const zend_function_entry class__ZendTestClass_methods[] = {
115120
ZEND_ME(_ZendTestClass, is_object, arginfo_class__ZendTestClass_is_object, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
116121
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[] = {
119124
};
120125

121126

127+
static const zend_function_entry class__ZendTestChildClass_methods[] = {
128+
ZEND_FE_END
129+
};
130+
131+
122132
static const zend_function_entry class__ZendTestTrait_methods[] = {
123133
ZEND_ME(_ZendTestTrait, testMethod, arginfo_class__ZendTestTrait_testMethod, ZEND_ACC_PUBLIC)
124134
ZEND_FE_END
125135
};
126136

127137

138+
static const zend_function_entry class_ZendTestAttribute_methods[] = {
139+
ZEND_FE_END
140+
};
141+
142+
128143
static const zend_function_entry class_ZendTestNS_Foo_methods[] = {
129144
ZEND_ME(ZendTestNS_Foo, method, arginfo_class_ZendTestNS_Foo_method, ZEND_ACC_PUBLIC)
130145
ZEND_FE_END

0 commit comments

Comments
 (0)