Skip to content

Commit b9893c2

Browse files
committed
Actually add the tentative type marker...
1 parent cad6144 commit b9893c2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ext/dom/php_dom.stub.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ class DOMNodeList implements IteratorAggregate, Countable
225225
/** @readonly */
226226
public int $length;
227227

228+
/** @tentative-return-type */
228229
public function count(): int {}
229230

230231
public function getIterator(): Iterator {}
@@ -601,6 +602,7 @@ public function getNamedItemNS(?string $namespace, string $localName) {}
601602
/** @return DOMNode|null */
602603
public function item(int $index) {}
603604

605+
/** @tentative-return-type */
604606
public function count(): int {}
605607

606608
public function getIterator(): Iterator {}

ext/dom/php_dom_arginfo.h

Lines changed: 2 additions & 2 deletions
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: 8fe764fbc22387ea36d36d3e5bec3c003d742c8c */
2+
* Stub hash: d67979083e0adf438b47b3c7296341a4b860fc88 */
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)
@@ -119,7 +119,7 @@ ZEND_END_ARG_INFO()
119119

120120
#define arginfo_class_DOMDocumentFragment_prepend arginfo_class_DOMParentNode_append
121121

122-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_DOMNodeList_count, 0, 0, IS_LONG, 0)
122+
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_DOMNodeList_count, 0, 0, IS_LONG, 0)
123123
ZEND_END_ARG_INFO()
124124

125125
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_DOMNodeList_getIterator, 0, 0, Iterator, 0)

0 commit comments

Comments
 (0)