Skip to content

Commit 2c2c836

Browse files
committed
Mark all classes as final
1 parent 808d08c commit 2c2c836

18 files changed

+18
-18
lines changed

src/BadServerException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
namespace React\Dns;
44

5-
class BadServerException extends \Exception
5+
final class BadServerException extends \Exception
66
{
77
}

src/Config/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use RuntimeException;
66

7-
class Config
7+
final class Config
88
{
99
/**
1010
* Loads the system DNS configuration

src/Model/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @link https://tools.ietf.org/html/rfc1035#section-4.1.1
1111
*/
12-
class Message
12+
final class Message
1313
{
1414
const TYPE_A = 1;
1515
const TYPE_NS = 2;

src/Model/Record.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @link https://tools.ietf.org/html/rfc1035#section-4.1.3
1212
* @see \React\Dns\Query\Query
1313
*/
14-
class Record
14+
final class Record
1515
{
1616
/**
1717
* @var string hostname without trailing dot, for example "reactphp.org"

src/Protocol/BinaryDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use React\Dns\Model\Record;
77
use React\Dns\Query\Query;
88

9-
class BinaryDumper
9+
final class BinaryDumper
1010
{
1111
/**
1212
* @param Message $message

src/Protocol/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* Obsolete and uncommon types and classes are not implemented.
1414
*/
15-
class Parser
15+
final class Parser
1616
{
1717
/**
1818
* Parses the given raw binary message into a Message object

src/Query/CachingExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use React\Dns\Model\Message;
77
use React\Promise\Promise;
88

9-
class CachingExecutor implements ExecutorInterface
9+
final class CachingExecutor implements ExecutorInterface
1010
{
1111
/**
1212
* Default TTL for negative responses (NXDOMAIN etc.).

src/Query/CancellationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
namespace React\Dns\Query;
44

5-
class CancellationException extends \RuntimeException
5+
final class CancellationException extends \RuntimeException
66
{
77
}

src/Query/CoopExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* );
3636
* ```
3737
*/
38-
class CoopExecutor implements ExecutorInterface
38+
final class CoopExecutor implements ExecutorInterface
3939
{
4040
private $executor;
4141
private $pending = array();

src/Query/HostsFileExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* DNS executor. If the host is not found in the hosts file, it will be passed
1515
* to the DNS executor as a fallback.
1616
*/
17-
class HostsFileExecutor implements ExecutorInterface
17+
final class HostsFileExecutor implements ExecutorInterface
1818
{
1919
private $hosts;
2020
private $fallback;

0 commit comments

Comments
 (0)