Skip to content

Commit a94c732

Browse files
committed
Mark classes as final to discourage inheritance
1 parent 83b77b4 commit a94c732

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use \InvalidArgumentException;
1313
use RuntimeException;
1414

15-
class Client implements ConnectorInterface
15+
final class Client implements ConnectorInterface
1616
{
1717
/**
1818
*

src/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use \Exception;
1616
use React\Promise\Timer\TimeoutException;
1717

18-
class Server
18+
final class Server
1919
{
2020
// the following error codes are only used for SOCKS5 only
2121
/** @internal */

src/StreamReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* @internal
1111
*/
12-
class StreamReader
12+
final class StreamReader
1313
{
1414
const RET_DONE = true;
1515
const RET_INCOMPLETE = null;

0 commit comments

Comments
 (0)