Skip to content

Commit

Permalink
Mark classes as final (bamarni#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Jul 8, 2022
1 parent db01447 commit 5222278
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/BinCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
use function sprintf;
use const GLOB_ONLYDIR;

/**
* @final Will be final in 2.x.
*/
class BinCommand extends BaseCommand
{
private const ALL_NAMESPACES = 'all';
Expand Down
3 changes: 3 additions & 0 deletions src/CommandProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability;

/**
* @final Will be final in 2.x.
*/
class CommandProvider implements CommandProviderCapability
{
public function getCommands(): array
Expand Down
6 changes: 4 additions & 2 deletions src/ConfigFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
use Composer\Config as ComposerConfig;
use Composer\Factory;
use Composer\Json\JsonFile;
use Composer\Json\JsonValidationException;
use Seld\JsonLint\ParsingException;

final class ConfigFactory
{
/**
* @throws \Composer\Json\JsonValidationException
* @throws \Seld\JsonLint\ParsingException
* @throws JsonValidationException
* @throws ParsingException
*/
public static function createConfig(): ComposerConfig
{
Expand Down
3 changes: 3 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
use function array_filter;
use function array_keys;

/**
* @final Will be final in 2.x.
*/
class Plugin implements PluginInterface, Capable, EventSubscriberInterface
{
/**
Expand Down

0 comments on commit 5222278

Please sign in to comment.