Skip to content

Commit

Permalink
Drop PHP 8.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSuisse committed Feb 10, 2023
1 parent 0e110ca commit a67483a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- 6379/tcp
strategy:
matrix:
php: ['8.0', '8.1', '8.2']
php: ['8.1', '8.2']
dependencies: ['', '--prefer-lowest --prefer-stable']
steps:
- name: Checkout
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
uses: actions/checkout@v3
- uses: shivammathur/setup-php@2.24.0
with:
php-version: '8.0'
php-version: '8.1'
extensions: mbstring, redis, apcu
ini-values: apc.enable_cli=1, zend.assertions=1
coverage: pcov
Expand All @@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php: ['8.0', '8.1', '8.2']
php: ['8.1', '8.2']
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
uses: actions/checkout@v3
- uses: shivammathur/setup-php@2.24.0
with:
php-version: '8.0'
php-version: '8.1'
extensions: mbstring, redis, apcu
coverage: none
- name: Install dependencies
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Prometheus instrumentation library",
"license": "Apache-2.0",
"require": {
"php": "~8.0.0|~8.1.0|~8.2.0",
"php": "~8.1.0|~8.2.0",
"ext-json": "*",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
Expand Down Expand Up @@ -42,7 +42,8 @@
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"infection/extension-installer": true
"infection/extension-installer": true,
"php-http/discovery": true
}
}
}
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
build:
context: php-fpm/
args:
PHP_VERSION: ${PHP_VERSION:-8.0}
PHP_VERSION: ${PHP_VERSION:-8.1}
volumes:
- .:/var/www/html
environment:
Expand All @@ -26,7 +26,7 @@ services:
build:
context: php-fpm/
args:
PHP_VERSION: ${PHP_VERSION:-8.0}
PHP_VERSION: ${PHP_VERSION:-8.1}
volumes:
- .:/var/www/html
environment:
Expand Down
6 changes: 3 additions & 3 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ pkgs ? import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/98747f27ecfee70c8c97b195cbb94df80a074dda.tar.gz";
sha256 = "04ss525ns5qqlggrdhvc6y4hqmshylda9yd0y99ddliyn15wmf27";
url = "https://github.com/NixOS/nixpkgs/archive/747927516efcb5e31ba03b7ff32f61f6d47e7d87.tar.gz";
sha256 = "1s4xabv59r99z8vd74w3r84kkxwqggqir3b0nh3ma04mni0m40gf";
}) {} }:

let
php = pkgs.php80.withExtensions ({ enabled, all }: with all; enabled ++ [ redis apcu ]);
php = pkgs.php81.withExtensions ({ enabled, all }: with all; enabled ++ [ redis apcu ]);
in
pkgs.mkShell {
nativeBuildInputs = [
Expand Down

0 comments on commit a67483a

Please sign in to comment.