Skip to content

Commit

Permalink
feat: Bump min PHP version supported to PHP 8.3
Browse files Browse the repository at this point in the history
There is no strong need to do so for the source code itself. However
this package still uses various tools for which it gets more annoying
the more PHP versions are supported.

I don't have a strong opinion as to which minimal version should be
used, so I decided to align this package with PHPUnit.
  • Loading branch information
theofidry committed Feb 13, 2025
1 parent 3d03508 commit 3a09811
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# To also adjust the PHP version in the following files:
# - vendor-bin/php-cs-fixer/composer.json
# - vendor-bin/rector/composer.json
- "8.1"
- "8.3"

steps:
- name: "Check out repository code"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,11 @@ jobs:
fail-fast: true
matrix:
php:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
debug: [false]
include:
- php: "8.1"
- php: "8.3"
debug: true

steps:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": "^8.1"
"php": "^8.3"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4",
Expand Down
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
findUnusedVariablesAndParams="true"
ensureArrayStringOffsetsExist="true"
ensureArrayIntOffsetsExist="true"
phpVersion="8.1">
phpVersion="8.3">

<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin" />
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/php-cs-fixer/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"fidry/php-cs-fixer-config": "^1.0"
},
"platform": {
"php": "8.1"
"php": "8.3"
}
}
2 changes: 1 addition & 1 deletion vendor-bin/rector/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
},
"config": {
"platform": {
"php": "8.1"
"php": "8.3"
}
}
}

0 comments on commit 3a09811

Please sign in to comment.