Skip to content

Commit

Permalink
make internal classes final and mark other classes that will be final…
Browse files Browse the repository at this point in the history
… in 2.0
  • Loading branch information
dbu committed Nov 18, 2023
1 parent 143dba2 commit cd42daa
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/ClientFactory/AutoDiscoveryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Use auto discovery to find a HTTP client.
*
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class AutoDiscoveryFactory implements ClientFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/ClientFactory/BuzzFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class BuzzFactory implements ClientFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/ClientFactory/CurlFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class CurlFactory implements ClientFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/ClientFactory/Guzzle5Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class Guzzle5Factory implements ClientFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/ClientFactory/Guzzle6Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class Guzzle6Factory implements ClientFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/ClientFactory/ReactFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class ReactFactory implements ClientFactory
{
Expand Down
2 changes: 2 additions & 0 deletions src/ClientFactory/SocketFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class SocketFactory implements ClientFactory
{
Expand Down
2 changes: 1 addition & 1 deletion src/Collector/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @internal
*/
class Collector extends DataCollector
final class Collector extends DataCollector
{
/**
* @var Stack|null
Expand Down
2 changes: 1 addition & 1 deletion src/Collector/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*
* @internal
*/
class Formatter implements MessageFormatter
final class Formatter implements MessageFormatter
{
/**
* @var MessageFormatter
Expand Down
2 changes: 1 addition & 1 deletion src/Collector/ProfileClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*
* @internal
*/
class ProfileClient implements HttpClient, HttpAsyncClient
final class ProfileClient implements HttpClient, HttpAsyncClient
{
use VersionBridgeClient;

Expand Down
2 changes: 1 addition & 1 deletion src/Collector/ProfileClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @internal
*/
class ProfileClientFactory implements ClientFactory
final class ProfileClientFactory implements ClientFactory
{
/**
* @var ClientFactory|callable
Expand Down
2 changes: 1 addition & 1 deletion src/Collector/ProfilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @internal
*/
class ProfilePlugin implements Plugin
final class ProfilePlugin implements Plugin
{
use Plugin\VersionBridgePlugin;

Expand Down
2 changes: 1 addition & 1 deletion src/Collector/StackPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @internal
*/
class StackPlugin implements Plugin
final class StackPlugin implements Plugin
{
use Plugin\VersionBridgePlugin;

Expand Down
2 changes: 2 additions & 0 deletions src/Collector/Twig/HttpMessageMarkupExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

/**
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class HttpMessageMarkupExtension extends AbstractExtension
{
Expand Down
2 changes: 2 additions & 0 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
*
* @author David Buchmann <[email protected]>
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class Configuration implements ConfigurationInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/DependencyInjection/HttplugExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
/**
* @author David Buchmann <[email protected]>
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class HttplugExtension extends Extension
{
Expand Down
2 changes: 2 additions & 0 deletions src/Discovery/ConfiguredClientsStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* we can use the web debug toolbar for clients found with the discovery.
*
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class ConfiguredClientsStrategy implements DiscoveryStrategy
{
Expand Down
2 changes: 2 additions & 0 deletions src/HttplugBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/**
* @author David Buchmann <[email protected]>
* @author Tobias Nyholm <[email protected]>
*
* @final
*/
class HttplugBundle extends Bundle
{
Expand Down

0 comments on commit cd42daa

Please sign in to comment.