Skip to content

Commit

Permalink
feat: updates minimum supported version to PHP 8.1 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran88 authored Jan 8, 2025
1 parent a2d8209 commit af384d7
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 172 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "PHP",
"image": "mcr.microsoft.com/devcontainers/php:1-8.2-bullseye",
"image": "mcr.microsoft.com/devcontainers/php:1-8.1-bookworm",
"features": {
"ghcr.io/itsmechlark/features/act:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.1'
tools: phpcs, cs2pr
- name: Lint
run: phpcs -q --standard=PSR12 --report=checkstyle custom | cs2pr
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.1'
tools: php-cs-fixer, cs2pr
- name: Format
run: php-cs-fixer fix --dry-run --allow-risky=yes --format=checkstyle --rules=@PSR12 | cs2pr
Expand All @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.1'
- name: Install dependencies
run: composer install
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"format": "./vendor/bin/php-cs-fixer fix --allow-risky=yes --rules=@PSR12"
},
"require": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
Expand Down
Loading

0 comments on commit af384d7

Please sign in to comment.