Skip to content

Commit 8e4be52

Browse files
committed
Add PHP 8.4, remove PHP 8.1
1 parent 68cd668 commit 8e4be52

File tree

26 files changed

+69
-33
lines changed

26 files changed

+69
-33
lines changed

.github/workflows/php-checks.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
php-versions: ['8.1', '8.2', '8.3']
8+
php-versions: ['8.2', '8.3', '8.4']
99
name: PHP ${{ matrix.php-versions }} tests
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313

1414
- name: Setup PHP
1515
uses: shivammathur/setup-php@v2
@@ -19,10 +19,10 @@ jobs:
1919

2020
- name: Get composer cache directory
2121
id: composer-cache
22-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
22+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
2323

2424
- name: Cache dependencies
25-
uses: actions/cache@v1
25+
uses: actions/cache@v4
2626
with:
2727
path: ${{ steps.composer-cache.outputs.dir }}
2828
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

.php-cs-fixer.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$config = new PhpCsFixer\Config();
4+
5+
return $config
6+
->setRules([
7+
'@PSR12' => true,
8+
'@PHP82Migration' => true,
9+
])
10+
->setFinder(
11+
PhpCsFixer\Finder::create()
12+
->in(__DIR__)
13+
);

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 4.0.0
4+
5+
- Dropped support for PHP `8.1` and lower.
6+
- Added support for PHP `8.4`.
7+
- Compatible with Symfony 6 and 7.
8+
39
## 3.0.0
410

511
### PHP support

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@
4040
},
4141
"minimum-stability": "stable",
4242
"require": {
43-
"php": "8.1.* || 8.2.* || 8.3.*",
43+
"php": "8.2 - 8.4",
4444
"ext-json": "*",
45-
"symfony/finder": "^6.0.0"
45+
"symfony/finder": "6 - 7"
4646
},
4747
"require-dev": {
48-
"phpstan/phpstan": "1.10.46",
49-
"phpunit/phpunit": "10.4.2",
50-
"squizlabs/php_codesniffer": "3.7.2"
48+
"phpstan/phpstan": "2.0.3",
49+
"phpunit/phpunit": "11.5.1",
50+
"squizlabs/php_codesniffer": "3.11.2",
51+
"friendsofphp/php-cs-fixer": "^3.65"
5152
}
5253
}

src/Naneau/ProjectVersioner/Reader/Composer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Naneau\ProjectVersioner\Reader;
34

45
use Naneau\ProjectVersioner\ReaderInterface;

src/Naneau/ProjectVersioner/Reader/ComposerJson.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
2+
23
namespace Naneau\ProjectVersioner\Reader;
34

45
use JsonException;
56
use Naneau\ProjectVersioner\ReaderInterface;
6-
77
use stdClass;
88

99
/**

src/Naneau/ProjectVersioner/Reader/ComposerPackage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
2+
23
namespace Naneau\ProjectVersioner\Reader;
34

45
use JsonException;
56
use Naneau\ProjectVersioner\ReaderInterface;
6-
77
use stdClass;
88
use RuntimeException;
99

src/Naneau/ProjectVersioner/Reader/File.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Naneau\ProjectVersioner\Reader;
34

45
use Naneau\ProjectVersioner\ReaderInterface;

src/Naneau/ProjectVersioner/Reader/Finder/Contents.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Naneau\ProjectVersioner\Reader\Finder;
34

45
/**

src/Naneau/ProjectVersioner/Reader/Finder/Finder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2+
23
namespace Naneau\ProjectVersioner\Reader\Finder;
34

45
use Naneau\ProjectVersioner\ReaderInterface;
5-
66
use Symfony\Component\Finder\Finder as SfFinder;
77

88
/**
@@ -21,7 +21,7 @@ public function __construct(?string $name = null, ?SfFinder $finder = null)
2121
{
2222
// Create finder if not given
2323
if ($finder === null) {
24-
$finder = new SfFinder;
24+
$finder = new SfFinder();
2525
}
2626

2727
// Set name if given

0 commit comments

Comments
 (0)