Skip to content

Commit cd42daa

Browse files
committed
make internal classes final and mark other classes that will be final in 2.0
1 parent 143dba2 commit cd42daa

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
@@ -10,6 +10,8 @@
1010
* Use auto discovery to find a HTTP client.
1111
*
1212
* @author Tobias Nyholm <[email protected]>
13+
*
14+
* @final
1315
*/
1416
class AutoDiscoveryFactory implements ClientFactory
1517
{

src/ClientFactory/BuzzFactory.php

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

1212
/**
1313
* @author Tobias Nyholm <[email protected]>
14+
*
15+
* @final
1416
*/
1517
class BuzzFactory implements ClientFactory
1618
{

src/ClientFactory/CurlFactory.php

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

1111
/**
1212
* @author Tobias Nyholm <[email protected]>
13+
*
14+
* @final
1315
*/
1416
class CurlFactory implements ClientFactory
1517
{

src/ClientFactory/Guzzle5Factory.php

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

1111
/**
1212
* @author Tobias Nyholm <[email protected]>
13+
*
14+
* @final
1315
*/
1416
class Guzzle5Factory implements ClientFactory
1517
{

src/ClientFactory/Guzzle6Factory.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 Guzzle6Factory implements ClientFactory
1315
{

src/ClientFactory/ReactFactory.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 ReactFactory implements ClientFactory
1416
{

src/ClientFactory/SocketFactory.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 SocketFactory implements ClientFactory
1416
{

src/Collector/Collector.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 Collector extends DataCollector
22+
final class Collector extends DataCollector
2323
{
2424
/**
2525
* @var Stack|null

src/Collector/Formatter.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 Formatter implements MessageFormatter
24+
final class Formatter implements MessageFormatter
2525
{
2626
/**
2727
* @var MessageFormatter

src/Collector/ProfileClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @internal
2525
*/
26-
class ProfileClient implements HttpClient, HttpAsyncClient
26+
final class ProfileClient implements HttpClient, HttpAsyncClient
2727
{
2828
use VersionBridgeClient;
2929

0 commit comments

Comments
 (0)