Skip to content

Commit f8c515d

Browse files
committed
Update stubs
1 parent b180ccc commit f8c515d

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

Php8StubsMap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,6 +2746,8 @@ public function __construct(int $phpVersionId)
27462746
'posix_sysconf' => 'stubs/ext/posix/posix_sysconf.php',
27472747
'random\\intervalboundary' => 'stubs/ext/random/Random/IntervalBoundary.php',
27482748
'socket_atmark' => 'stubs/ext/sockets/socket_atmark.php',
2749+
'str_decrement' => 'stubs/ext/standard/str_decrement.php',
2750+
'str_increment' => 'stubs/ext/standard/str_increment.php',
27492751
]);
27502752
}
27512753

stubs/ext/dom/DOMElement.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ public function setIdAttributeNS(string $namespace, string $qualifiedName, bool
117117
public function setIdAttributeNode(DOMAttr $attr, bool $isId)
118118
{
119119
}
120+
#[\Since('8.3')]
121+
public function toggleAttribute(string $qualifiedName, ?bool $force = null): bool
122+
{
123+
}
120124
public function remove(): void
121125
{
122126
}
@@ -145,4 +149,12 @@ public function prepend(...$nodes): void
145149
public function replaceChildren(...$nodes): void
146150
{
147151
}
152+
#[\Since('8.3')]
153+
public function insertAdjacentElement(string $where, DOMElement $element): ?DOMElement
154+
{
155+
}
156+
#[\Since('8.3')]
157+
public function insertAdjacentText(string $where, string $data): void
158+
{
159+
}
148160
}

stubs/ext/dom/DOMNode.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ public function isDefaultNamespace(string $namespace)
7070
public function isSameNode(DOMNode $otherNode)
7171
{
7272
}
73+
#[\Since('8.3')]
74+
public function isEqualNode(?DOMNode $otherNode): bool
75+
{
76+
}
7377
/**
7478
* @tentative-return-type
7579
* @return bool

stubs/ext/standard/str_decrement.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
#[\Since('8.3')]
4+
function str_decrement(string $string): string
5+
{
6+
}

stubs/ext/standard/str_increment.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
#[\Since('8.3')]
4+
function str_increment(string $string): string
5+
{
6+
}

0 commit comments

Comments
 (0)