File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments