Skip to content

Commit 142b8d4

Browse files
committed
PHP 8.4 support
1 parent 8c4ac57 commit 142b8d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Rfc8484StubDoHResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct(private DoHConfig $dohConfig)
7373
}
7474

7575
/** @inheritdoc */
76-
public function resolve(string $name, int $typeRestriction = null, ?Cancellation $cancellation = null): array
76+
public function resolve(string $name, ?int $typeRestriction = null, ?Cancellation $cancellation = null): array
7777
{
7878
if ($typeRestriction !== null && $typeRestriction !== DnsRecord::A && $typeRestriction !== DnsRecord::AAAA) {
7979
throw new \Error("Invalid value for parameter 2: null|DnsRecord::A|DnsRecord::AAAA expected");
@@ -233,7 +233,7 @@ public function reloadConfig(): void
233233
$this->pendingConfig->await();
234234
}
235235

236-
private function queryHosts(string $name, int $typeRestriction = null): array
236+
private function queryHosts(string $name, ?int $typeRestriction = null): array
237237
{
238238
\assert($this->config !== null);
239239
$hosts = $this->config->getKnownHosts();

0 commit comments

Comments
 (0)