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+
};

0 commit comments

Comments
 (0)