Skip to content

Commit

Permalink
drop the unsupported PHP versions (7.4, 8.0, 8.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
someniatko committed Nov 26, 2024
1 parent da2e546 commit 6fd5b70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
on: [ push, pull_request ]
jobs:
test-74:
test-82:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.2
tools: composer:v2
coverage: none

- run: composer install -o

- name: unit tests
Expand All @@ -20,20 +21,6 @@ jobs:
- name: psalm static analysis
run: php vendor/bin/psalm

test-82:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
tools: composer:v2
coverage: none
- run: composer install -o

- name: unit tests
run: php vendor/bin/phpunit

test-84:
runs-on: ubuntu-22.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Works best with [`someniatko/result-type-psalm-plugin`][psalm-plugin]!


## Installation
This library requires PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4.
This library requires PHP 8.2, 8.3 or 8.4.
You can install it via Composer:

```shell
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"description": "Functional-ish generic Result type: either Success or Error",
"require": {
"php": "7.4.* || 8.0.* || 8.1.* || 8.2.* || 8.3.* || 8.4.*"
"php": "8.2.* || 8.3.* || 8.4.*"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
Expand Down

0 comments on commit 6fd5b70

Please sign in to comment.