Skip to content

Commit

Permalink
Update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot committed Jul 18, 2023
1 parent b180ccc commit f8c515d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Php8StubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2746,6 +2746,8 @@ public function __construct(int $phpVersionId)
'posix_sysconf' => 'stubs/ext/posix/posix_sysconf.php',
'random\\intervalboundary' => 'stubs/ext/random/Random/IntervalBoundary.php',
'socket_atmark' => 'stubs/ext/sockets/socket_atmark.php',
'str_decrement' => 'stubs/ext/standard/str_decrement.php',
'str_increment' => 'stubs/ext/standard/str_increment.php',
]);
}

Expand Down
12 changes: 12 additions & 0 deletions stubs/ext/dom/DOMElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ public function setIdAttributeNS(string $namespace, string $qualifiedName, bool
public function setIdAttributeNode(DOMAttr $attr, bool $isId)
{
}
#[\Since('8.3')]
public function toggleAttribute(string $qualifiedName, ?bool $force = null): bool
{
}
public function remove(): void
{
}
Expand Down Expand Up @@ -145,4 +149,12 @@ public function prepend(...$nodes): void
public function replaceChildren(...$nodes): void
{
}
#[\Since('8.3')]
public function insertAdjacentElement(string $where, DOMElement $element): ?DOMElement
{
}
#[\Since('8.3')]
public function insertAdjacentText(string $where, string $data): void
{
}
}
4 changes: 4 additions & 0 deletions stubs/ext/dom/DOMNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public function isDefaultNamespace(string $namespace)
public function isSameNode(DOMNode $otherNode)
{
}
#[\Since('8.3')]
public function isEqualNode(?DOMNode $otherNode): bool
{
}
/**
* @tentative-return-type
* @return bool
Expand Down
6 changes: 6 additions & 0 deletions stubs/ext/standard/str_decrement.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

#[\Since('8.3')]
function str_decrement(string $string): string
{
}
6 changes: 6 additions & 0 deletions stubs/ext/standard/str_increment.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

#[\Since('8.3')]
function str_increment(string $string): string
{
}

0 comments on commit f8c515d

Please sign in to comment.