Skip to content

Commit 314ba78

Browse files
Merge pull request #5 from cleverage/feat/4
Implements #4 - Update PHP, Symfony and dependencies
2 parents ec73a9a + ea62c88 commit 314ba78

File tree

8 files changed

+72
-49
lines changed

8 files changed

+72
-49
lines changed

.docker/php/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.4-fpm-alpine
1+
FROM php:8.5-fpm-alpine
22

33
ARG UID
44
ARG GID
@@ -14,8 +14,7 @@ RUN apk update && apk add \
1414
icu-dev \
1515
libzip-dev \
1616
&& docker-php-ext-configure intl \
17-
&& docker-php-ext-install intl opcache zip \
18-
&& docker-php-ext-enable opcache
17+
&& docker-php-ext-install intl zip
1918

2019
RUN ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime \
2120
&& sed -i "s/^;date.timezone =.*/date.timezone = Europe\/Paris/" $PHP_INI_DIR/php.ini

.github/workflows/quality.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
1919
- name: Install PHP with extensions
2020
uses: shivammathur/setup-php@v2
2121
with:
22-
php-version: '8.4'
22+
php-version: '8.5'
2323
coverage: none
2424
tools: composer:v2
2525
- name: Install Composer dependencies (locked)
@@ -32,11 +32,11 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@v6
3636
- name: Install PHP with extensions
3737
uses: shivammathur/setup-php@v2
3838
with:
39-
php-version: '8.4'
39+
php-version: '8.5'
4040
coverage: none
4141
tools: composer:v2
4242
- name: Install Composer dependencies (locked)
@@ -49,11 +49,11 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: Checkout code
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@v6
5353
- name: Install PHP with extensions
5454
uses: shivammathur/setup-php@v2
5555
with:
56-
php-version: '8.4'
56+
php-version: '8.5'
5757
coverage: none
5858
tools: composer:v2
5959
- name: Install Composer dependencies (locked)

.github/workflows/test.yml

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,12 @@ jobs:
2323
- '8.2'
2424
- '8.3'
2525
- '8.4'
26+
- '8.5'
2627
dependencies: [highest]
2728
allowed-to-fail: [false]
2829
symfony-require: ['']
2930
variant: [normal]
3031
include:
31-
- php-version: '8.1'
32-
dependencies: highest
33-
allowed-to-fail: false
34-
symfony-require: 6.4.*
35-
variant: symfony/symfony:"6.4.*"
3632
- php-version: '8.2'
3733
dependencies: highest
3834
allowed-to-fail: false
@@ -41,8 +37,8 @@ jobs:
4137
- php-version: '8.2'
4238
dependencies: highest
4339
allowed-to-fail: false
44-
symfony-require: 7.3.*
45-
variant: symfony/symfony:"7.3.*"
40+
symfony-require: 7.4.*
41+
variant: symfony/symfony:"7.4.*"
4642
- php-version: '8.3'
4743
dependencies: highest
4844
allowed-to-fail: false
@@ -51,8 +47,8 @@ jobs:
5147
- php-version: '8.3'
5248
dependencies: highest
5349
allowed-to-fail: false
54-
symfony-require: 7.3.*
55-
variant: symfony/symfony:"7.3.*"
50+
symfony-require: 7.4.*
51+
variant: symfony/symfony:"7.4.*"
5652
- php-version: '8.4'
5753
dependencies: highest
5854
allowed-to-fail: false
@@ -61,12 +57,31 @@ jobs:
6157
- php-version: '8.4'
6258
dependencies: highest
6359
allowed-to-fail: false
64-
symfony-require: 7.3.*
65-
variant: symfony/symfony:"7.3.*"
66-
60+
symfony-require: 7.4.*
61+
variant: symfony/symfony:"7.4.*"
62+
- php-version: '8.4'
63+
dependencies: highest
64+
allowed-to-fail: false
65+
symfony-require: 8.*
66+
variant: symfony/symfony:"8.*"
67+
- php-version: '8.5'
68+
dependencies: highest
69+
allowed-to-fail: false
70+
symfony-require: 6.4.*
71+
variant: symfony/symfony:"6.4.*"
72+
- php-version: '8.5'
73+
dependencies: highest
74+
allowed-to-fail: false
75+
symfony-require: 7.4.*
76+
variant: symfony/symfony:"7.4.*"
77+
- php-version: '8.5'
78+
dependencies: highest
79+
allowed-to-fail: false
80+
symfony-require: 8.*
81+
variant: symfony/symfony:"8.*"
6782
steps:
6883
- name: Checkout
69-
uses: actions/checkout@v4
84+
uses: actions/checkout@v6
7085
- name: Install PHP with extensions
7186
uses: shivammathur/setup-php@v2
7287
with:

.php-cs-fixer.dist.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424

2525
return (new PhpCsFixer\Config())
2626
->setRules([
27-
'@PHP71Migration' => true,
28-
'@PHP82Migration' => true,
29-
'@PHPUnit75Migration:risky' => true,
27+
'@PHP8x2Migration' => true,
28+
'@PHPUnit7x5Migration:risky' => true,
3029
'@Symfony' => true,
3130
'@Symfony:risky' => true,
3231
'protected_to_private' => false,

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
v2.0
2+
------
3+
4+
### Changes
5+
* [#4](https://github.com/cleverage/archive-process-bundle/issues/4) Add support for PHP 8.5 and Symfony 8.* Update phpunit/phpunit to version >10.0 Bump version to cleverage/process-bundle ^5.0
6+
7+
### BC breaks
8+
* [#4](https://github.com/cleverage/archive-process-bundle/issues/4) Remove support for PHP 8.1 and Symfony 7.3
9+
10+
11+
112
v1.1
213
------
314

composer.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
"name": "Nicolas Joubert",
1919
"email": "[email protected]",
2020
"role": "Lead Developer"
21+
},
22+
{
23+
"name": "Xavier Marchegay",
24+
"email": "[email protected]",
25+
"homepage": "https://github.com/xmarchegay",
26+
"role": "Lead Developer"
2127
}
2228
],
2329
"autoload": {
@@ -31,16 +37,16 @@
3137
}
3238
},
3339
"require": {
34-
"php": ">=8.1",
40+
"php": ">=8.2",
3541
"ext-zip": "*",
36-
"cleverage/process-bundle": "^4.0.0"
42+
"cleverage/process-bundle": "^5.0"
3743
},
3844
"require-dev": {
3945
"friendsofphp/php-cs-fixer": "*",
4046
"phpstan/extension-installer": "*",
4147
"phpstan/phpstan": "*",
4248
"phpstan/phpstan-symfony": "*",
43-
"phpunit/phpunit": "<10.0",
49+
"phpunit/phpunit": "*",
4450
"rector/rector": "*",
4551
"roave/security-advisories": "dev-latest",
4652
"symfony/test-pack": "^1.1"

phpunit.xml.dist

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.0/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
5-
cacheResultFile=".phpunit.cache/test-results"
5+
cacheDirectory=".phpunit.cache"
66
executionOrder="depends,defects"
7-
forceCoversAnnotation="true"
8-
beStrictAboutCoversAnnotation="true"
7+
requireCoverageMetadata="true"
8+
beStrictAboutCoverageMetadata="true"
99
beStrictAboutOutputDuringTests="true"
10-
beStrictAboutTodoAnnotatedTests="true"
11-
convertDeprecationsToExceptions="true"
1210
failOnRisky="true"
13-
failOnWarning="true"
14-
verbose="true">
11+
failOnWarning="true">
1512
<testsuites>
1613
<testsuite name="default">
1714
<directory>tests</directory>
1815
</testsuite>
1916
</testsuites>
20-
21-
<coverage cacheDirectory=".phpunit.cache/code-coverage"
22-
processUncoveredFiles="true">
17+
<source>
2318
<include>
2419
<directory suffix=".php">src</directory>
2520
</include>
26-
</coverage>
27-
</phpunit>
21+
</source>
22+
</phpunit>

rector.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,26 @@
33
declare(strict_types=1);
44

55
use Rector\Config\RectorConfig;
6+
use Rector\PHPUnit\Set\PHPUnitSetList;
67
use Rector\Set\ValueObject\LevelSetList;
78
use Rector\Symfony\Set\SymfonySetList;
89
use Rector\ValueObject\PhpVersion;
910

1011
return RectorConfig::configure()
11-
->withPhpVersion(PhpVersion::PHP_82)
12+
->withPhpVersion(PhpVersion::PHP_85)
1213
->withPaths([
1314
__DIR__.'/src',
1415
__DIR__.'/tests',
1516
])
1617
->withPhpSets(php82: true)
17-
// here we can define, what prepared sets of rules will be applied
18-
->withPreparedSets(
19-
deadCode: true,
20-
codeQuality: true
21-
)
18+
// here we can define what prepared sets of rules will be applied
19+
->withPreparedSets(deadCode: true, codeQuality: true, symfonyCodeQuality: true)
20+
->withAttributesSets(symfony: true)
2221
->withSets([
2322
LevelSetList::UP_TO_PHP_82,
23+
PHPUnitSetList::PHPUNIT_100,
2424
SymfonySetList::SYMFONY_64,
25-
SymfonySetList::SYMFONY_71,
2625
SymfonySetList::SYMFONY_CODE_QUALITY,
2726
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
28-
SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
2927
])
3028
;

0 commit comments

Comments
 (0)