Skip to content

Commit 0f466a5

Browse files
committed
chore: upgrade to PHP 8.5 support
- Remove PHP 8.1 and 8.2 support, add PHP 8.5 support - Replace friendsofphp/php-cs-fixer with php-cs-fixer/shim ^3.88 - Update phpro/grumphp-shim to ^2.17 - Add vimeo/psalm ^6.13 for static analysis - Update GitHub workflow matrix to PHP 8.3, 8.4, 8.5 - Add continue-on-error for PHP 8.5 in workflows - Create psalm.xml configuration with findUnusedCode=false and ensureOverrideAttribute=false - Update composer dependencies with --ignore-platform-reqs --with-all-dependencies Code changes applied by GitHub Copilot CLI agent.
1 parent ab4306a commit 0f466a5

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/grumphp.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1', '8.2', '8.3', '8.4']
10+
php-versions: ['8.3', '8.4', '8.5']
1111
composer-options: ['', '--prefer-lowest']
1212
fail-fast: false
1313
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} with ${{ matrix.composer-options }}
@@ -21,7 +21,7 @@ jobs:
2121
tools: 'composer:v2'
2222
extensions: pcov, mbstring, posix
2323
- name: Set env vars for latest PHP version
24-
if: matrix.php-versions == '8.4'
24+
if: matrix.php-versions == '8.5'
2525
run: |
2626
export COMPOSER_IGNORE_PLATFORM_REQ=php+
2727
export BOX_REQUIREMENT_CHECKER=0
@@ -47,6 +47,6 @@ jobs:
4747
git config --global user.name "Your Name"
4848
- name: Run the tests
4949
run: php vendor/bin/grumphp run --no-interaction
50-
continue-on-error: ${{ matrix.php-versions == '8.1' && matrix.composer-options == '--prefer-lowest' }}
50+
continue-on-error: ${{ matrix.php-versions == '8.5' && matrix.composer-options == '--prefer-lowest' }}
5151
env:
5252
PHP_CS_FIXER_IGNORE_ENV: 1

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"description": "RFC7807 Problem details implementation",
44
"type": "library",
55
"require-dev": {
6-
"friendsofphp/php-cs-fixer": "^3.13",
7-
"phpro/grumphp-shim": "^2.10",
6+
"php-cs-fixer/shim": "^3.88",
7+
"phpro/grumphp-shim": "^2.17",
88
"phpspec/phpspec": "^7.2",
9+
"vimeo/psalm": "^6.13",
910
"symfony/validator": "^5.4 || ^6.0 || ^7.0",
1011
"sebastian/comparator": "^4.0"
1112
},
@@ -17,7 +18,7 @@
1718
}
1819
],
1920
"require": {
20-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
21+
"php": "~8.3.0 || ~8.4.0 || ~8.5.0"
2122
},
2223
"config": {
2324
"sort-packages": true,

psalm.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns="https://getpsalm.org/schema/config"
5+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
6+
findUnusedCode="false"
7+
ensureOverrideAttribute="false"
8+
errorLevel="1"
9+
resolveFromConfigFile="true"
10+
>
11+
<projectFiles>
12+
<directory name="src" />
13+
<ignoreFiles>
14+
<directory name="vendor" />
15+
</ignoreFiles>
16+
</projectFiles>
17+
</psalm>

0 commit comments

Comments
 (0)