Skip to content

Commit

Permalink
chore: remove support for PHP 7.4 (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi committed Dec 17, 2022
1 parent 27c67fe commit 1ab3353
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 169 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,24 @@ jobs:
PHP_VERSION: ${{ matrix.php }}
strategy:
matrix:
php: [ "7.4", "8.0", "8.1" ]
php: [ "8.0", "8.1" ]
dependencies: [ lowest, highest ]
steps:
-
uses: actions/checkout@v3
-
name: "Composer install: ${{ matrix.dependencies }}"
run: make all/composer/install-${{ matrix.dependencies }}
-
name: Tests without mutation
if: "matrix.php == '7.4'"
run: make all/test/phpunit-coverage
-
name: Tests with mutation
if: "matrix.php != '7.4'"
run: make test
CodeQualityAnalysis:
runs-on: ubuntu-latest
env:
PHP_VERSION: ${{ matrix.php }}
strategy:
matrix:
php: [ "7.4", "8.0", "8.1" ]
php: [ "8.0", "8.1" ]
dependencies: [ lowest, highest ]
steps:
-
Expand Down
6 changes: 0 additions & 6 deletions 7.4-phpstan.neon.dist

This file was deleted.

77 changes: 0 additions & 77 deletions 7.4-psalm.xml.dist

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"ext-json": "*",
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0",
"symfony/serializer": "^4.4 || ^5.0 || ^6.0"
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/PhpSpreadsheet/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"phpoffice/phpspreadsheet": "^1.18",
"sigwin/xezilaires": "^0.5 || ^0.6"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/Spout/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"openspout/openspout": "^3.0",
"sigwin/xezilaires": "^0.5 || ^0.6"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Bridge/Symfony/bin/xezilaires
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface;
use Xezilaires\Bridge\Symfony\AppKernel;
use Xezilaires\Bridge\Symfony\Console\Application;

if (version_compare('7.4.0', PHP_VERSION, '>')) {
fwrite(STDERR, 'Xezilaires requires PHP 7.4+'.PHP_EOL);
if (version_compare('8.0.0', PHP_VERSION, '>')) {
fwrite(STDERR, 'Xezilaires requires PHP 8.0+'.PHP_EOL);
exit(1);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Bridge/Symfony/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"sigwin/xezilaires": "^0.5 || ^0.6",
"symfony/console": "^4.4 || ^5.0 || ^6.0",
"symfony/framework-bundle": "^4.4 || ^5.0 || ^6.0",
Expand Down
8 changes: 0 additions & 8 deletions src/Xezilaires/7.4-phpstan.neon.dist

This file was deleted.

60 changes: 0 additions & 60 deletions src/Xezilaires/7.4-psalm.xml.dist

This file was deleted.

3 changes: 3 additions & 0 deletions src/Xezilaires/Serializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@

interface Serializer
{
/**
* @param array<string, mixed> $context
*/
public function serialize(object $data, string $format, array $context = []): string;
}
4 changes: 0 additions & 4 deletions src/Xezilaires/Test/Functional/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,6 @@ public function testCanLoadSparseFixtureWithAnnotations(): void
*/
public function testCanLoadSparseFixtureWithNativeAttributes(): void
{
if (\PHP_VERSION_ID < 80000) {
static::markTestSkipped('Native PHP attributes available since PHP 8.0.0');
}

$driver = new AnnotationDriver();
$mapping = $driver->getMetadataMapping(ProductWithAttributes::class);

Expand Down
2 changes: 1 addition & 1 deletion src/Xezilaires/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.0",
"symfony/options-resolver": "^4.4 || ^5.0 || ^6.0",
"symfony/serializer": "^4.4 || ^5.0 || ^6.0"
},
Expand Down

0 comments on commit 1ab3353

Please sign in to comment.