Skip to content

Commit 3b40df2

Browse files
authored
Merge pull request #6 from p-chess/php82
⬆️ drop PHP 8.1
2 parents 5a92d37 + 26ab26a commit 3b40df2

3 files changed

Lines changed: 20 additions & 25 deletions

File tree

.github/workflows/build.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v6
1616
- name: PHPStan
17-
uses: docker://oskarstark/phpstan-ga:1.8.0
17+
uses: docker://oskarstark/phpstan-ga
1818
env:
1919
REQUIRE_DEV: true
2020
with:
@@ -34,14 +34,13 @@ jobs:
3434
strategy:
3535
matrix:
3636
php:
37-
- '8.1'
3837
- '8.2'
3938
- '8.3'
4039
- '8.4'
4140
- '8.5'
4241
include:
4342
- description: 'Symfony 6.4'
44-
php: '8.1'
43+
php: '8.2'
4544
composer_option: '--prefer-lowest'
4645
- description: 'Symfony 6.4'
4746
php: '8.3'
@@ -56,21 +55,17 @@ jobs:
5655
steps:
5756
- name: Checkout
5857
uses: actions/checkout@v6
59-
- name: Cache
60-
uses: actions/cache@v4
61-
with:
62-
path: ~/.composer/cache/files
63-
key: ${{ matrix.php }}-${{ matrix.symfony }}-${{ matrix.composer_option }}
6458
- name: Setup PHP
6559
uses: shivammathur/setup-php@v2
6660
with:
6761
php-version: ${{ matrix.php }}
68-
- run: |
69-
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'${{ matrix.symfony }}'"/' composer.json;
70-
if: contains(matrix.symfony, '-dev')
71-
- run: composer config minimum-stability dev
72-
- run: composer config prefer-stable true
73-
if: matrix.symfony
74-
- run: composer update --no-interaction --no-progress --ansi ${{ matrix.composer_option }}
75-
- run: vendor/bin/phpunit
62+
tools: flex
63+
- name: Install dependencies
64+
uses: ramsey/composer-install@v3
65+
with:
66+
dependency-versions: ${{ matrix.dependencies }}
67+
env:
68+
SYMFONY_REQUIRE: ${{ matrix.symfony }}
69+
- name: Run tests
70+
run: vendor/bin/phpunit --colors=always
7671

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
}
2020
],
2121
"require": {
22-
"php": "^8.1",
23-
"p-chess/chess": "^1.0",
22+
"php": "^8.2",
23+
"p-chess/chess": "^1.1",
2424
"symfony/config": "^6.4 || ^7.4 || ^8.0",
2525
"symfony/dependency-injection": "^6.4 || ^7.4 || ^8.0",
2626
"symfony/http-kernel": "^6.4 || ^7.4 || ^8.0",
2727
"symfony/routing": "^6.4 || ^7.4 || ^8.0",
28-
"twig/twig": "^3.22"
28+
"twig/twig": "^3.23"
2929
},
3030
"require-dev": {
3131
"dg/bypass-finals": "^1.9",
32-
"phpunit/phpunit": "^10.5 || ^11.5 || ^12.5",
32+
"phpunit/phpunit": "^11.5 || ^12.5 || ^13.0",
3333
"symfony/phpunit-bridge": "^8.0"
3434
},
3535
"config": {

phpstan-baseline.neon

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Call to an undefined method#"
5-
count: 1
6-
path: src/DependencyInjection/Configuration.php
7-
83
-
94
message: "#^Cannot call method getSession\\(\\) on Symfony\\\\Component\\\\HttpFoundation\\\\Request\\|null\\.$#"
105
count: 1
116
path: tests/SessionChessProviderTest.php
7+
8+
-
9+
identifier: staticMethod.alreadyNarrowedType
10+
count: 12
11+
path: tests

0 commit comments

Comments
 (0)