Skip to content

Commit

Permalink
Drop PHP 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Nov 17, 2023
1 parent 5e29262 commit 38cced6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 38 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- "8.1"
- "8.0"
- "7.4"
- "7.3"

php-code-coverage-version:
- "^10.0"
Expand All @@ -43,14 +42,10 @@ jobs:
exclude:
- php-version: "7.4"
symfony-version: "^6.0"
- php-version: "7.3"
symfony-version: "^6.0"
- php-version: "8.0"
php-code-coverage-version: "^10.0"
- php-version: "7.4"
php-code-coverage-version: "^10.0"
- php-version: "7.3"
php-code-coverage-version: "^10.0"

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.3 || ^8.0",
"php": "^7.4 || ^8.0",
"composer-runtime-api": "^2.0",
"behat/behat": "^3.10",
"composer/semver": "^3.0",
Expand Down
4 changes: 0 additions & 4 deletions src/Controller/Cli/CodeCoverageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@

class CodeCoverageController implements Controller
{
/**
* {@inheritdoc}
*/
public function configure(Command $command): void
{
$command->addOption('no-coverage', null, InputOption::VALUE_NONE, 'Skip Code Coverage generation');
}

/**
* {@inheritdoc}
* @codeCoverageIgnore
*/
public function execute(InputInterface $input, OutputInterface $output): void
Expand Down
15 changes: 0 additions & 15 deletions src/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,10 @@

class Extension implements ExtensionInterface
{
/**
* {@inheritdoc}
*/
public function initialize(ExtensionManager $extensionManager): void
{
}

/**
* {@inheritdoc}
*/
public function load(ContainerBuilder $container, array $config): void
{
$container->registerForAutoconfiguration(Controller::class)->addTag(CliExtension::CONTROLLER_TAG);
Expand All @@ -61,9 +55,6 @@ public function load(ContainerBuilder $container, array $config): void
$container->setParameter('behat.code_coverage.config.cache', $config['cache']);
}

/**
* {@inheritdoc}
*/
public function configure(ArrayNodeDefinition $builder): void
{
$builder
Expand Down Expand Up @@ -185,17 +176,11 @@ public function configure(ArrayNodeDefinition $builder): void
->end();
}

/**
* {@inheritdoc}
*/
public function getConfigKey()
{
return 'code_coverage';
}

/**
* {@inheritdoc}
*/
public function process(ContainerBuilder $container): void
{
/** @var InputInterface $input */
Expand Down
5 changes: 1 addition & 4 deletions src/Service/ReportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@

class ReportService
{
/**
* @var array
*/
private $config;
private array $config;

/**
* Constructor.
Expand Down
12 changes: 3 additions & 9 deletions src/Subscriber/EventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@

class EventSubscriber implements EventSubscriberInterface
{
/**
* @var CodeCoverage
*/
private $coverage;
private ?CodeCoverage $coverage;

/**
* @var ReportService
*/
private $reportService;
private ReportService $reportService;

public function __construct(ReportService $reportService, CodeCoverage $coverage = null)
public function __construct(ReportService $reportService, ?CodeCoverage $coverage)
{
$this->reportService = $reportService;
$this->coverage = $coverage;
Expand Down

0 comments on commit 38cced6

Please sign in to comment.