Skip to content

Commit cbca805

Browse files
committed
make internal classes final and mark other classes that will be final in 2.0
1 parent 3bd469e commit cbca805

18 files changed

+30
-6
lines changed

src/ClientFactory/AutoDiscoveryFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Use auto discovery to find a HTTP client.
99
*
1010
* @author Tobias Nyholm <[email protected]>
11+
*
12+
* @final
1113
*/
1214
class AutoDiscoveryFactory implements ClientFactory
1315
{

src/ClientFactory/BuzzFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
/**
1111
* @author Tobias Nyholm <[email protected]>
12+
*
13+
* @final
1214
*/
1315
class BuzzFactory implements ClientFactory
1416
{

src/ClientFactory/CurlFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/**
1010
* @author Tobias Nyholm <[email protected]>
11+
*
12+
* @final
1113
*/
1214
class CurlFactory implements ClientFactory
1315
{

src/ClientFactory/Guzzle5Factory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
/**
1010
* @author Tobias Nyholm <[email protected]>
11+
*
12+
* @final
1113
*/
1214
class Guzzle5Factory implements ClientFactory
1315
{

src/ClientFactory/Guzzle6Factory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
/**
88
* @author Tobias Nyholm <[email protected]>
9+
*
10+
* @final
911
*/
1012
class Guzzle6Factory implements ClientFactory
1113
{

src/ClientFactory/ReactFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
/**
99
* @author Tobias Nyholm <[email protected]>
10+
*
11+
* @final
1012
*/
1113
class ReactFactory implements ClientFactory
1214
{

src/ClientFactory/SocketFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
/**
99
* @author Tobias Nyholm <[email protected]>
10+
*
11+
* @final
1012
*/
1113
class SocketFactory implements ClientFactory
1214
{

src/Collector/Collector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*/
21-
class Collector extends DataCollector
21+
final class Collector extends DataCollector
2222
{
2323
/**
2424
* @var Stack|null

src/Collector/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*
2020
* @internal
2121
*/
22-
class Formatter implements MessageFormatter
22+
final class Formatter implements MessageFormatter
2323
{
2424
/**
2525
* @var MessageFormatter

src/Collector/ProfileClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* @internal
2323
*/
24-
class ProfileClient implements HttpClient, HttpAsyncClient
24+
final class ProfileClient implements HttpClient, HttpAsyncClient
2525
{
2626
use VersionBridgeClient;
2727

0 commit comments

Comments
 (0)