Skip to content

Commit 02ad06f

Browse files
committed
chore(composer): update dependencies
- remove sf 6 support - remove php 8.2 support - apply new version of pixel coding standards
1 parent db58fb8 commit 02ad06f

37 files changed

Lines changed: 250 additions & 10520 deletions

.github/workflows/php.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,9 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
php-version: [ '8.2', '8.3' ]
21-
symfony-version: [ '6.4.*', '7.1.*' ]
20+
php-version: [ '8.3', '8.4' ]
21+
symfony-version: [ '7.3.*' ]
2222
symfony-deprecations-helper: [ 'max[direct]=0' ]
23-
grumphp-testsuite: [ 'no-analyse' ]
24-
grumphp-flag: [ '-no-analyse' ]
25-
include:
26-
- php-version: '8.2'
27-
symfony-version: '7.1.*'
28-
symfony-deprecations-helper: 'max[direct]=0&max[indirect]=99999'
29-
grumphp-testsuite: 'main'
3023

3124
name: "PHP: ${{ matrix.php-version }}, Symfony: ${{ matrix.symfony-version }}, GrumPHP: ${{ matrix.grumphp-testsuite }}, Composer: ${{ matrix.composer-flag }}"
3225

@@ -38,28 +31,20 @@ jobs:
3831
with:
3932
php-version: ${{ matrix.php-version }}
4033

41-
- name: Validate composer.json and composer.lock
34+
- name: Validate composer.json
4235
run: composer validate --strict
4336

4437
- name: Check PHP Version
4538
run: php -v
4639

4740
- name: Symfony version # run every time except for dependencies with SF 7.1 (locked in composer)
48-
if: ${{ matrix.grumphp-testsuite == 'no-analyse' }}
4941
run: composer config extra.symfony.require ${{ matrix.symfony-version }}
5042

51-
- name: Composer update # run for everything except php 8.2 or SF 7.1 locked in composer.lock
52-
if: ${{ matrix.grumphp-testsuite == 'no-analyse' }}
53-
run: |
54-
composer install # run because of symfony/flex
55-
composer update --prefer-dist --no-interaction
56-
57-
- name: Composer install # only run for locked dependencies with php 8.2 or SF 7.1 (locked in composer)
58-
if: ${{ matrix.grumphp-testsuite == 'main' }}
59-
run: composer install --prefer-dist --no-interaction
43+
- name: Composer update
44+
run: composer update --prefer-dist --no-interaction
6045

6146
- name: Run static analysis (GrumPHP)
62-
run: composer run-script grumphp${{ matrix.php-version }}${{ matrix.grumphp-flag }}
47+
run: composer run-script grumphp${{ matrix.php-version }}
6348

6449
- name: Check vendor licenses
6550
run: composer run-script lic-check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
.env
88
docker-compose.override.yml
99
mutagen.yml.lock
10+
composer.lock
1011
tests/Functional/app/var/*

.php-cs-fixer.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@
22

33
declare(strict_types=1);
44

5-
$config = (new PhpCsFixer\Config())
5+
use PhpCsFixer\Config;
6+
use PhpCsFixer\Finder;
7+
8+
return (new Config())
69
->setRiskyAllowed(true)
710
->setRules([
8-
'array_syntax' => [
11+
'array_syntax' => [
912
'syntax' => 'short',
1013
],
11-
'no_useless_else' => true,
14+
'no_unused_imports' => true,
15+
'no_useless_else' => true,
1216
'no_useless_return' => true,
1317
'strict_comparison' => true,
14-
'strict_param' => true,
15-
'no_unused_imports' => true,
18+
'strict_param' => true,
1619
])
1720
->setFinder(
18-
PhpCsFixer\Finder::create()
21+
Finder::create()
1922
->exclude('vendor')
2023
->exclude('tests')
21-
->in(__DIR__)
24+
->in(__DIR__),
2225
);
23-
24-
return $config;

bin/grumphp_hooks/environment_spinup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export PATH="/usr/local/bin:$PATH"
88
#
99
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1010

11-
if [[ -z `docker-compose ps -q circuit-breaker-bundle-php81` ]] || [[ -z `docker ps -q --no-trunc | grep $(docker-compose ps -q circuit-breaker-bundle-php81)` ]]; then
11+
if [[ -z `docker-compose ps -q circuit-breaker-bundle-php83` ]] || [[ -z `docker ps -q --no-trunc | grep $(docker-compose ps -q circuit-breaker-bundle-php83)` ]]; then
1212
docker-compose up -d
1313
fi

composer.json

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,36 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=8.2",
19-
"ackintosh/ganesha": "^2.0 || ^3.0",
18+
"php": ">=8.3",
19+
"ackintosh/ganesha": "^4.0",
2020
"beberlei/assert": "^3.3",
21-
"doctrine/annotations": "^1.12|^2.0",
22-
"symfony/cache": "^6.4 || ^7.1",
23-
"symfony/framework-bundle": "^6.4 || ^7.1",
24-
"symfony/proxy-manager-bridge": "^6.4 || ^7.1"
21+
"doctrine/annotations": "^2.0",
22+
"symfony/cache": "^7.3",
23+
"symfony/config": "^7.3",
24+
"symfony/framework-bundle": "^7.1",
25+
"symfony/proxy-manager-bridge": "^6.4"
2526
},
2627
"require-dev": {
27-
"amphp/amp": "3.0.2 as 2.6.4",
28-
"amphp/byte-stream": "2.1.1 as 1.5",
2928
"friendsofphp/php-cs-fixer": "^3.2",
3029
"madewithlove/license-checker": "^0.10|^1.0",
30+
"nikic/php-parser": "^5.6",
3131
"php-parallel-lint/php-parallel-lint": "^1.3",
32-
"phpcompatibility/php-compatibility": "^9.1",
3332
"phpmd/phpmd": "^2.6",
34-
"phpro/grumphp": "2.4.0",
35-
"phpstan/phpstan": "^1.1",
36-
"phpunit/phpunit": "^10.2",
37-
"pixelfederation/coding-standards": "^2.1",
33+
"phpro/grumphp": "^2.17",
34+
"phpstan/phpstan": "^2.0",
35+
"phpunit/phpunit": "^12.0",
36+
"pixelfederation/coding-standards": "^5.0",
37+
"psalm/phar": "^6.13",
3838
"roave/security-advisories": "dev-master",
39-
"squizlabs/php_codesniffer": "^3.4",
39+
"squizlabs/php_codesniffer": "^4.0",
4040
"symfony/flex": "^2.3",
4141
"symfony/monolog-bundle": "^3.7",
42-
"symfony/phpunit-bridge": "^6.4 || ^7.1",
43-
"vimeo/psalm": "^5.0"
42+
"symfony/phpunit-bridge": "^7.1"
4443
},
4544
"autoload": {
4645
"psr-4": {
4746
"PixelFederation\\CircuitBreakerBundle\\": "src/"
47+
4848
}
4949
},
5050
"autoload-dev": {
@@ -60,22 +60,16 @@
6060
"symfony/flex": true
6161
}
6262
},
63-
"extra": {
64-
"symfony": {
65-
"require": "7.1.*",
66-
"docker": false
67-
}
68-
},
6963
"scripts": {
70-
"grumphp8.2": "grumphp run --testsuite=php8.2",
71-
"grumphp8.2-no-analyse": "grumphp run --testsuite=php8.2-no-analyse",
72-
"grumphp8.3-no-analyse": "grumphp run --testsuite=php8.3-no-analyse",
64+
"grumphp8.3": "grumphp run --testsuite=php8.3",
65+
"grumphp8.4": "grumphp run --testsuite=php8.4",
7366
"lic-check": "license-checker check",
7467
"phpcs": "phpcs --standard=phpcs.ruleset.xml src",
7568
"phpcbf": "phpcbf --standard=phpcs.ruleset.xml --extensions=php --tab-width=4 -sp src tests",
7669
"php-cs-fixer": "php-cs-fixer --config=./.php_cs fix src",
7770
"phpmd": "phpmd src text phpmd.ruleset.xml",
7871
"phpstan": "phpstan analyse src --level=7",
79-
"psalm": "psalm"
72+
"psalm": "psalm",
73+
"phpunit": "phpunit"
8074
}
8175
}

0 commit comments

Comments
 (0)