Skip to content

Commit 897b4db

Browse files
committed
drop support for php 7, fix some symfony 6.x issues
1 parent 1544e12 commit 897b4db

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ This package is designed to be used in your CI/CD or automated testing process _
2020
The concept for this package is based on [this article](https://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/).
2121

2222
---
23+
``
24+
> Note on PHP 7.x support:
25+
> If you are using PHP 7.x, use the 1.x version of this package.
26+
>
2327
2428
## Installation
2529

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.3|^8.0",
23+
"php": "^8.0",
2424
"ext-simplexml": "*",
25-
"symfony/console": "^5.3|^6.0"
25+
"symfony/console": "^6.0"
2626
},
2727
"require-dev": {
2828
"phpunit/phpunit": "^9.5",

src/Commands/CheckCoverageCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
use Symfony\Component\Console\Input\InputInterface;
1010
use Symfony\Component\Console\Input\InputOption;
1111
use Symfony\Component\Console\Output\OutputInterface;
12+
use Symfony\Component\Console\Attribute\AsCommand;
1213

14+
#[AsCommand('check')]
1315
class CheckCoverageCommand extends Command
1416
{
15-
protected static $defaultName = 'check';
16-
1717
/** @var OutputInterface */
1818
protected $output;
1919

0 commit comments

Comments
 (0)