1
0
mirror of https://github.com/danog/dns.git synced 2024-11-30 04:29:06 +01:00

Remove useless phpdoc tags

This commit is contained in:
Niklas Keller 2022-02-23 00:18:40 +01:00
parent a8bac90b51
commit e11f2ebd4d
4 changed files with 0 additions and 28 deletions

View File

@ -23,11 +23,6 @@ abstract class Socket
{
private const MAX_CONCURRENT_REQUESTS = 500;
/**
* @param string $uri
*
* @return self
*/
abstract public static function connect(string $uri): self;
private ReadableResourceStream $input;
@ -107,11 +102,6 @@ abstract class Socket
}
/**
* @param Question $question
* @param float $timeout
*
* @return Message
*
* @throws DnsException
*/
final public function ask(Question $question, float $timeout): Message
@ -181,10 +171,6 @@ abstract class Socket
}
/**
* @param Message $message
*
* @return void
*
* @throws StreamException
*/
abstract protected function send(Message $message): void;

View File

@ -222,8 +222,6 @@ final class Rfc1035StubResolver implements Resolver
* Reloads the configuration in the background.
*
* Once it's finished, the configuration will be used for new requests.
*
* @return Config
*/
public function reloadConfig(): Config
{
@ -455,12 +453,6 @@ final class Rfc1035StubResolver implements Resolver
return $name;
}
/**
* @param string $name
* @param int $type
*
* @return Question
*/
private function createQuestion(string $name, int $type): Question
{
if (0 > $type || 0xffff < $type) {

View File

@ -26,8 +26,6 @@ function resolver(Resolver $resolver = null): Resolver
/**
* Create a new dns resolver best-suited for the current environment.
*
* @return Resolver
*/
function createDefaultResolver(): Resolver
{
@ -58,8 +56,6 @@ function query(string $name, int $type): array
* Checks whether a string is a valid DNS name.
*
* @param string $name String to check.
*
* @return bool
*/
function isValidName(string $name): bool
{

View File

@ -15,8 +15,6 @@ use function Amp\async;
class IntegrationTest extends AsyncTestCase
{
/**
* @param string $hostname
*
* @group internet
* @dataProvider provideHostnames
*/